summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2023-11-07 10:44:39 -0500
committerJosh Ferrell <josh@vector35.com>2023-11-07 10:44:50 -0500
commit8a8ebbe2358f5ddfa8a5f59adcbd0e19d9e9b9f8 (patch)
treece41ac96daa29ecabbbacc09de9ae98ccd3b1637 /python/binaryview.py
parentb6ba318c569540286a0c296887f7d265f9b91602 (diff)
Make non "if_available" il accessors throw ILException, create exceptions.py for custom exception types
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index ea0aba4f..009e668d 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -45,6 +45,8 @@ from .enums import (
TypeClass, BinaryViewEventType, FunctionGraphType, TagReferenceType, TagTypeType, RegisterValueType, LogLevel,
DisassemblyOption
)
+from .exceptions import RelocationWriteException
+
from . import associateddatastore # required for _BinaryViewAssociatedDataStore
from .log import log_warn, log_error, Logger
from . import typelibrary
@@ -82,11 +84,6 @@ LineMatchCallbackType = Callable[[int, 'lineardisassembly.LinearDisassemblyLine'
StringOrType = Union[str, '_types.Type', '_types.TypeBuilder']
-class RelocationWriteException(Exception):
- """ Exception raised when a relocation fails to apply """
- pass
-
-
@dataclass(frozen=True)
class ReferenceSource:
function: Optional['_function.Function']