pub enum Error {
Show 14 variants
Io(Error),
Utf8(Utf8Error),
FromBytesWithNul(FromBytesWithNulError),
Other(Error),
Throw(Exception),
Type(TypeError),
ClassNotFound(ClassNotFoundError),
ArgumentCount(ArgumentCountError),
StateType(StateTypeError),
CallFunction(CallFunctionError),
CallMethod(CallMethodError),
InitializeObject(InitializeObjectError),
NotRefCountedType(NotRefCountedTypeError),
ExpectType(ExpectTypeError),
}
Expand description
Crate level Error, which also can become an exception in php.
As a php exception, will throw ErrorException
when the item not implement
Throwable.
Variants§
Io(Error)
Utf8(Utf8Error)
FromBytesWithNul(FromBytesWithNulError)
Other(Error)
Throw(Exception)
Type(TypeError)
ClassNotFound(ClassNotFoundError)
ArgumentCount(ArgumentCountError)
StateType(StateTypeError)
CallFunction(CallFunctionError)
CallMethod(CallMethodError)
InitializeObject(InitializeObjectError)
NotRefCountedType(NotRefCountedTypeError)
ExpectType(ExpectTypeError)
Implementations§
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ArgumentCountError> for Error
impl From<ArgumentCountError> for Error
source§fn from(source: ArgumentCountError) -> Self
fn from(source: ArgumentCountError) -> Self
Converts to this type from the input type.
source§impl From<CallFunctionError> for Error
impl From<CallFunctionError> for Error
source§fn from(source: CallFunctionError) -> Self
fn from(source: CallFunctionError) -> Self
Converts to this type from the input type.
source§impl From<CallMethodError> for Error
impl From<CallMethodError> for Error
source§fn from(source: CallMethodError) -> Self
fn from(source: CallMethodError) -> Self
Converts to this type from the input type.
source§impl From<ClassNotFoundError> for Error
impl From<ClassNotFoundError> for Error
source§fn from(source: ClassNotFoundError) -> Self
fn from(source: ClassNotFoundError) -> Self
Converts to this type from the input type.
source§impl From<ExpectTypeError> for Error
impl From<ExpectTypeError> for Error
source§fn from(source: ExpectTypeError) -> Self
fn from(source: ExpectTypeError) -> Self
Converts to this type from the input type.
source§impl From<FromBytesWithNulError> for Error
impl From<FromBytesWithNulError> for Error
source§fn from(source: FromBytesWithNulError) -> Self
fn from(source: FromBytesWithNulError) -> Self
Converts to this type from the input type.
source§impl From<InitializeObjectError> for Error
impl From<InitializeObjectError> for Error
source§fn from(source: InitializeObjectError) -> Self
fn from(source: InitializeObjectError) -> Self
Converts to this type from the input type.
source§impl From<NotRefCountedTypeError> for Error
impl From<NotRefCountedTypeError> for Error
source§fn from(source: NotRefCountedTypeError) -> Self
fn from(source: NotRefCountedTypeError) -> Self
Converts to this type from the input type.
source§impl From<StateTypeError> for Error
impl From<StateTypeError> for Error
source§fn from(source: StateTypeError) -> Self
fn from(source: StateTypeError) -> Self
Converts to this type from the input type.