pub enum DynAnyError {
InvalidValue,
TypeMismatch,
InconsistentTypeCode,
MustTruncate,
System(SystemException),
}Expand description
Why a DynAny operation failed: the exceptions of DynamicAny, or a
system exception (OBJECT_NOT_EXIST after DynAny::destroy,
BAD_OPERATION for an operation of another kind of DynAny,
NO_IMPLEMENT for abstract interfaces).
Variants§
InvalidValue
DynAny::InvalidValue: the value is not one the operation accepts
(out of bounds, no current component…).
TypeMismatch
DynAny::TypeMismatch: the type does not fit.
InconsistentTypeCode
DynAnyFactory::InconsistentTypeCode: no DynAny can have this
type.
MustTruncate
MustTruncate: a valuetype instance is of a type derived from the
declared one, and truncation was refused.
System(SystemException)
A system exception.
Trait Implementations§
Source§impl Clone for DynAnyError
impl Clone for DynAnyError
Source§impl Debug for DynAnyError
impl Debug for DynAnyError
Source§impl Display for DynAnyError
impl Display for DynAnyError
Source§impl Error for DynAnyError
impl Error for DynAnyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<SystemException> for DynAnyError
impl From<SystemException> for DynAnyError
Source§fn from(e: SystemException) -> DynAnyError
fn from(e: SystemException) -> DynAnyError
Converts to this type from the input type.
Source§impl PartialEq for DynAnyError
impl PartialEq for DynAnyError
impl StructuralPartialEq for DynAnyError
Auto Trait Implementations§
impl Freeze for DynAnyError
impl RefUnwindSafe for DynAnyError
impl Send for DynAnyError
impl Sync for DynAnyError
impl Unpin for DynAnyError
impl UnsafeUnpin for DynAnyError
impl UnwindSafe for DynAnyError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more