aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorefigs <morefigs@gmail.com>2019-01-29 10:24:25 +1100
committermorefigs <morefigs@gmail.com>2019-01-29 10:24:25 +1100
commit75e39ba4f1fbbed406a1d7de7b5d4fa52d3859f1 (patch)
tree6c7d91ebe49156b35982131047a351c94204952e
parent9ef9b70070678fe3d4663ca70cd1dec3094eac6a (diff)
downloadpymba-75e39ba4f1fbbed406a1d7de7b5d4fa52d3859f1.tar.gz
pymba-75e39ba4f1fbbed406a1d7de7b5d4fa52d3859f1.zip
remove unused custom errors
-rw-r--r--pymba/vimba_exception.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/pymba/vimba_exception.py b/pymba/vimba_exception.py
index 4ce9e93..22f03c2 100644
--- a/pymba/vimba_exception.py
+++ b/pymba/vimba_exception.py
@@ -1,4 +1,3 @@
-
class VimbaException(Exception):
ERROR_CODES = (
# 0
@@ -26,14 +25,10 @@ class VimbaException(Exception):
ERR_PARTIAL_REGISTER_ACCESS,
# -50 to -56
- ERR_CAMERA_NOT_FOUND,
ERR_FRAME_BUFFER_MEMORY,
- ERR_INVALID_INPUT,
- ERR_FEATURE_NOT_FOUND,
- ERR_INTERFACE_NOT_FOUND,
ERR_NOT_IMPLEMENTED_IN_PYMBA,
ERR_UNDEFINED_ERROR_CODE,
- ) = tuple(range(0, -20, -1)) + tuple(range(-50, -57, -1))
+ ) = tuple(range(0, -20, -1)) + tuple(range(-50, -53, -1))
ERRORS = {
# Vimba C API specific errors
@@ -59,11 +54,7 @@ class VimbaException(Exception):
ERR_PARTIAL_REGISTER_ACCESS: 'A multiple registers read or write was partially completed.',
# Custom errors
- ERR_CAMERA_NOT_FOUND: 'Could not find the specified camera.',
ERR_FRAME_BUFFER_MEMORY: 'Not enough memory to assign frame buffer.',
- ERR_INVALID_INPUT: 'Invalid input.',
- ERR_FEATURE_NOT_FOUND: 'Could not find the specified feature.',
- ERR_INTERFACE_NOT_FOUND: 'Could not find the specified interface.',
ERR_NOT_IMPLEMENTED_IN_PYMBA: 'This function is not yet implemented in Pymba',
ERR_UNDEFINED_ERROR_CODE: 'Undefined error code',
}