Skip to content

Commit

Permalink
Added tradeexcept.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Oct 17, 2014
1 parent 9054cb0 commit b494981
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tradeexcept.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#! /usr/bin/env python

class TradeException(Exception):
"""
Distinguishes runtime logical errors (such as no data for what you
queried) from programmatic errors (such as Oliver accessing a hash
with the wrong type of key).
TradeExcepts should be caught by the program and displayed in the
most user friendly way possible.
"""
pass

0 comments on commit b494981

Please sign in to comment.