Change the InvalidDataException to include the object that threw the validation error.

This commit is contained in:
Mike Auty
2017-09-22 09:56:22 +01:00
parent 393d657d6f
commit fea912baaa
+4
View File
@@ -41,6 +41,10 @@ class PagedInvalidAddressException(InvalidAddressException):
class InvalidDataException(VolatilityException):
"""Thrown when an object contains some data known to be invalid for that structure"""
def __init__(self, invalid_object, *args):
super.__init__(invalid_object, *args)
self._invalid_object = invalid_object
class SymbolSpaceError(VolatilityException):
"""Thrown when an error occurs dealing with Symbols and Symbolspaces"""