first commit

This commit is contained in:
2020-11-03 18:30:14 -08:00
commit 31d8522470
1881 changed files with 345408 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
# -*- 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.
"""