63 lines
1.4 KiB
Python
63 lines
1.4 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Pop related exceptions
|
|
"""
|
|
|
|
|
|
class PopBaseException(Exception):
|
|
"""
|
|
Base exception where all of Pop's exceptions derive
|
|
"""
|
|
|
|
|
|
class PopError(PopBaseException):
|
|
"""
|
|
General purpose pop exception to signal an error
|
|
"""
|
|
|
|
|
|
class PopLoadError(PopBaseException):
|
|
"""
|
|
Exception raised when a pop module fails to load
|
|
"""
|
|
|
|
|
|
class PopLookupError(PopBaseException):
|
|
"""
|
|
Exception raised when a pop module lookup fails
|
|
"""
|
|
|
|
|
|
class ContractModuleException(PopBaseException):
|
|
"""
|
|
Exception raised when a function specified in a contract as required
|
|
to exist is not found in the loaded module
|
|
"""
|
|
|
|
|
|
class ContractFuncException(PopBaseException):
|
|
"""
|
|
Exception raised when a function specified in a contract as required
|
|
to exist is found on the module but it's not function
|
|
"""
|
|
|
|
|
|
class ContractSigException(PopBaseException):
|
|
"""
|
|
Exception raised when a function signature is not compatible with the
|
|
coresponding function signature found in the contract.
|
|
"""
|
|
|
|
|
|
class ProcessNotStarted(PopBaseException):
|
|
"""
|
|
Exception raised when failing to start a process on the process manager
|
|
"""
|
|
|
|
|
|
class BindError(PopBaseException):
|
|
"""
|
|
Exception raised when arguments for a function in a ContractedContext cannot be bound
|
|
Indicates invalid function arguments.
|
|
"""
|