Starting here, trunk is broken pending re-organizations. Check out the previous revision if you'd like to tinker.
This commit is contained in:
parent
4b25a08597
commit
837f1152c6
28 changed files with 0 additions and 0 deletions
11
src/objects/exceptions.py
Normal file
11
src/objects/exceptions.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"""
|
||||
Exceptions for the object application.
|
||||
"""
|
||||
from src.exceptions_generic import GenericException
|
||||
|
||||
class ObjectNotExist(GenericException):
|
||||
"""
|
||||
Raised when an object is queried for but does not exist.
|
||||
"""
|
||||
def __str__(self):
|
||||
return repr("No such object: %s" % self.value)
|
||||
Loading…
Add table
Add a link
Reference in a new issue