mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-21 22:12:23 +02:00
35 lines
925 B
Python
35 lines
925 B
Python
"""
|
|
Created on 1 Dec 2012
|
|
|
|
@author: mike
|
|
"""
|
|
|
|
|
|
class VolatilityException(Exception):
|
|
"""Class to allow filtering of all VolatilityExceptions"""
|
|
|
|
|
|
class SymbolError(VolatilityException):
|
|
"""Thrown when a symbol lookup has failed"""
|
|
|
|
|
|
class InvalidAddressException(VolatilityException):
|
|
"""Thrown when an address is not valid in the space it was requested"""
|
|
|
|
def __init__(self, layer_name, invalid_address, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
self.invalid_address = invalid_address
|
|
self.layer_name = layer_name
|
|
|
|
|
|
class SymbolSpaceError(VolatilityException):
|
|
"""Thrown when an error occurs dealing with Symbols and Symbolspaces"""
|
|
|
|
|
|
class LayerException(VolatilityException):
|
|
"""Thrown when an error occurs dealing with memory and layers"""
|
|
|
|
|
|
class TreePopulationError(Exception):
|
|
"""Exception class for accessing functions on an partially populated tree."""
|