Source code for deisa.ray.errors

[docs] class ContractError(Exception): """Exception raised when a contract or invariant is violated.""" def __init__(self, message="Contract not satisfied."): super().__init__(message) self.message = message
[docs] class ConfigError(RuntimeError): """Raised when configuration is mutated after it has been locked.""" pass