-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oliver Smith
committed
Oct 17, 2014
1 parent
9054cb0
commit b494981
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|