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