mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-30 11:49:42 +02:00
Change the InvalidDataException to include the object that threw the validation error.
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user