Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix MEID unit test, catch init failure
[ric-plt/lib/rmr.git]
/
src
/
bindings
/
rmr-python
/
rmr
/
exceptions.py
diff --git
a/src/bindings/rmr-python/rmr/exceptions.py
b/src/bindings/rmr-python/rmr/exceptions.py
index
f427b7f
..
c1f1a88
100644
(file)
--- a/
src/bindings/rmr-python/rmr/exceptions.py
+++ b/
src/bindings/rmr-python/rmr/exceptions.py
@@
-1,6
+1,6
@@
# ==================================================================================
# ==================================================================================
-# Copyright (c) 2019 Nokia
-# Copyright (c) 2018-20
19
AT&T Intellectual Property.
+# Copyright (c) 2019
-2020
Nokia
+# Copyright (c) 2018-20
20
AT&T Intellectual Property.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-21,3
+21,11
@@
Custom Exceptions
class BadBufferAllocation(BaseException):
"""a bad buffer was allocated, check the rmr context"""
class BadBufferAllocation(BaseException):
"""a bad buffer was allocated, check the rmr context"""
+
+
+class MeidSizeOutOfRange(BaseException):
+ """an attempt to set the MEID with a buffer that was too large"""
+
+
+class InitFailed(BaseException):
+ """rmr init failure, the context is unusable"""