mirror of https://github.com/ConsenSys/mythril
parent
49ca94c2da
commit
a8f61a0f83
@ -1,25 +1,31 @@ |
||||
"""This module contains exceptions regarding JSON-RPC communication.""" |
||||
|
||||
|
||||
class EthJsonRpcError(Exception): |
||||
"""The JSON-RPC base exception type.""" |
||||
|
||||
pass |
||||
|
||||
|
||||
class ConnectionError(EthJsonRpcError): |
||||
"""An RPC exception denoting there was an error in connecting to the RPC instance.""" |
||||
|
||||
pass |
||||
|
||||
|
||||
class BadStatusCodeError(EthJsonRpcError): |
||||
"""An RPC exception denoting a bad status code returned by the RPC instance.""" |
||||
|
||||
pass |
||||
|
||||
|
||||
class BadJsonError(EthJsonRpcError): |
||||
"""An RPC exception denoting that the RPC instance returned a bad JSON object.""" |
||||
|
||||
pass |
||||
|
||||
|
||||
class BadResponseError(EthJsonRpcError): |
||||
"""An RPC exception denoting that the RPC instance returned a bad response.""" |
||||
|
||||
pass |
||||
|
@ -1,30 +1,37 @@ |
||||
"""This module contains general exceptions used by Mythril.""" |
||||
|
||||
|
||||
class MythrilBaseException(Exception): |
||||
"""The Mythril exception base type.""" |
||||
|
||||
pass |
||||
|
||||
|
||||
class CompilerError(MythrilBaseException): |
||||
"""A Mythril exception denoting an error during code compilation.""" |
||||
|
||||
pass |
||||
|
||||
|
||||
class UnsatError(MythrilBaseException): |
||||
"""A Mythril exception denoting the unsatisfiability of a series of constraints.""" |
||||
|
||||
pass |
||||
|
||||
|
||||
class NoContractFoundError(MythrilBaseException): |
||||
"""A Mythril exception denoting that a given contract file was not found.""" |
||||
|
||||
pass |
||||
|
||||
|
||||
class CriticalError(MythrilBaseException): |
||||
"""A Mythril exception denoting an unknown critical error has been encountered.""" |
||||
|
||||
pass |
||||
|
||||
|
||||
class AddressNotFoundError(MythrilBaseException): |
||||
"""A Mythril exception denoting the given smart contract address was not found.""" |
||||
|
||||
pass |
||||
|
Loading…
Reference in new issue