- Added scripting support for claim list retrieval and single claim

evaluation.
This commit is contained in:
ccremers
2007-01-27 12:53:19 +00:00
parent 72c081c3cd
commit 0e21a2bd20
2 changed files with 67 additions and 1 deletions

View File

@@ -59,5 +59,17 @@ class UnknownPlatformError(Error):
def __str__(self):
return "The %s platform is currently unsupported." % self.platform
class StringListError(Error):
"""Raised when the a string should be a list of strings or a string
Attributes:
obj -- object that did not fit
"""
def __init__(self, obj):
self.obj = obj
def __str__(self):
return "Got %s instead of a (list of) string." % self.obj
# vim: set ts=4 sw=4 et list lcs=tab\:>-: