rlmesh::ErrorClass
The exact class of an Error, using RLMesh's error-class vocabulary.
enum ErrorClassRust cannot nest enum variants, so a subclass without a variant of its
own (RecoverableEnvironmentException, AdapterResolutionError) shares
its parent’s Error variant; Error::class still reports the exact
class, and ErrorClass::is_subclass_of tests class inheritance.
Variants
- RLMeshException
RLMeshException(aRuntimeError): an internal or server-side failure. - ProtocolException
ProtocolException(anRLMeshException). - EnvironmentException
EnvironmentException(anRLMeshException). - RecoverableEnvironmentException
RecoverableEnvironmentException(anEnvironmentException). - ModelException
ModelException(anRLMeshException). - ValueError
ValueError. - AdapterResolutionError
AdapterResolutionError(aValueError). - TypeError
TypeError. - RuntimeError
RuntimeError: misuse and local refusals. - OSError
OSError: a filesystem failure. - ConnectionError
ConnectionError(anOSError). - TimeoutError
TimeoutError(anOSError). - KeyboardInterrupt
KeyboardInterrupt: cancellation.
Associated constants
Methods
- name()The class name (
"RecoverableEnvironmentException"). - base()The direct base class within this vocabulary, following the error-class hierarchy (
Nonewhere the base isExceptionorBaseException). - is_subclass_of()Class inheritance test: reflexive and transitive over the class hierarchy (
ConnectionErroris a subclass ofOSError).
RLMeshException
variant[source]RLMeshExceptionRLMeshException (a RuntimeError): an internal or server-side failure.
ProtocolException
variant[source]ProtocolExceptionProtocolException (an RLMeshException).
EnvironmentException
variant[source]EnvironmentExceptionEnvironmentException (an RLMeshException).
RecoverableEnvironmentException
variant[source]RecoverableEnvironmentExceptionRecoverableEnvironmentException (an EnvironmentException).
ModelException
variant[source]ModelExceptionModelException (an RLMeshException).
ValueError
variant[source]ValueErrorValueError.
AdapterResolutionError
variant[source]AdapterResolutionErrorAdapterResolutionError (a ValueError).
TypeError
variant[source]TypeErrorTypeError.
RuntimeError
variant[source]RuntimeErrorRuntimeError: misuse and local refusals.
OSError
variant[source]OSErrorOSError: a filesystem failure.
ConnectionError
variant[source]ConnectionErrorConnectionError (an OSError).
TimeoutError
variant[source]TimeoutErrorTimeoutError (an OSError).
KeyboardInterrupt
variant[source]KeyboardInterruptKeyboardInterrupt: cancellation.
ALL
associated constant[source]const ALL: [ErrorClass; 13]Every class, in the order of the cross-language error table (the C
RLMeshErrorClass values 1-13).
name
method[source]fn name(self) -> &'static strThe class name ("RecoverableEnvironmentException").
base
method[source]fn base(self) -> Option<ErrorClass>The direct base class within this vocabulary, following the
error-class hierarchy (None where the base is Exception or
BaseException).
is_subclass_of
method[source]fn is_subclass_of(self, base: ErrorClass) -> boolClass inheritance test: reflexive and transitive over the class hierarchy
(ConnectionError is a subclass of OSError).
Trait implementations
- impl Debug for ErrorClass
- impl Clone for ErrorClass
- impl Copy for ErrorClass
- impl StructuralPartialEq for ErrorClass
- impl PartialEq for ErrorClass
- impl Eq for ErrorClass
- impl Hash for ErrorClass
- impl Display for ErrorClass