You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
483 B
24 lines
483 B
5 years ago
|
import json
|
||
|
import requests
|
||
|
|
||
|
|
||
|
class RPCError(RuntimeError):
|
||
|
"""
|
||
|
Exception raised when RPC call returns an error
|
||
|
"""
|
||
|
|
||
|
class JSONDecodeError(json.decoder.JSONDecodeError):
|
||
|
"""
|
||
|
Wrapper for json lib DecodeError exception
|
||
|
"""
|
||
|
|
||
|
class RequestsError(requests.exceptions.RequestException):
|
||
|
"""
|
||
|
Wrapper for requests lib exceptions
|
||
|
"""
|
||
|
|
||
|
class RequestsTimeoutError(requests.exceptions.Timeout):
|
||
|
"""
|
||
|
Wrapper for requests lib Timeout exceptions
|
||
|
"""
|