Files
basegame-vcko/python3-vckonline/lib/python3.8/site-packages/pop/exc.py
2020-11-03 18:30:14 -08:00

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.
"""