[exceptions] Add base exceptions package (#6)
* [exceptions] Remove unused import * [exceptions] Add base exceptions package & move InvalidRPCReplyError to base exceptions packagepull/7/head
parent
fdfe7f255f
commit
6881847544
@ -0,0 +1,14 @@ |
||||
from .rpc.exceptions import ( |
||||
RPCError, |
||||
RequestsError, |
||||
RequestsTimeoutError |
||||
) |
||||
|
||||
class InvalidRPCReplyError(RuntimeError): |
||||
""" |
||||
Exception raised when RPC call returns unexpected result |
||||
Generally indicates Harmony API has been updated & pyhmy library needs to be updated as well |
||||
""" |
||||
|
||||
def __init__(self, method, endpoint): |
||||
super().__init__(f'Unexpected reply for {method} from {endpoint}') |
Loading…
Reference in new issue