pub struct RustealError { /* private fields */ }Implementations§
Source§impl RustealError
impl RustealError
pub fn new(kind: ErrorKind) -> Self
pub fn with_message( kind: ErrorKind, message: impl Into<Cow<'static, str>>, ) -> Self
pub fn msg(message: impl Into<Cow<'static, str>>) -> Self
pub fn other(error: impl Error + Send + Sync + 'static) -> Self
pub fn object_destroyed() -> Self
pub fn invalid_cast() -> Self
pub fn invalid_cast_to(object: UObjectHandle, target: UClassHandle) -> Self
pub fn property_not_found(name: impl Into<Cow<'static, str>>) -> Self
pub fn function_not_found(name: impl Into<Cow<'static, str>>) -> Self
pub fn type_mismatch() -> Self
pub fn null_argument() -> Self
pub fn index_out_of_range() -> Self
pub fn invalid_operation(message: impl Into<Cow<'static, str>>) -> Self
pub fn internal(message: impl Into<Cow<'static, str>>) -> Self
pub fn buffer_too_small() -> Self
pub fn context(self, context: impl Into<Cow<'static, str>>) -> Self
pub fn message_or(self, message: impl Into<Cow<'static, str>>) -> Self
pub fn with_source(self, source: impl Error + Send + Sync + 'static) -> Self
pub fn on(self, object: &impl UeHandle) -> Self
pub fn on_handle(self, object: UObjectHandle) -> Self
pub fn on_class(self, class: UClassHandle) -> Self
pub fn kind(&self) -> ErrorKind
pub fn is(&self, kind: ErrorKind) -> bool
pub fn message(&self) -> Option<&str>
pub fn subject(&self) -> Option<&UeSubject>
pub fn location(&self) -> &'static Location<'static>
pub fn contexts( &self, ) -> impl Iterator<Item = (&str, &'static Location<'static>)>
pub fn causes(&self) -> impl Iterator<Item = &(dyn Error + 'static)>
pub fn report(&self) -> String
pub fn engine_message(&self) -> Option<&str>
pub fn source_file(&self) -> String
pub fn log(&self, level: u8)
Trait Implementations§
Source§impl Debug for RustealError
impl Debug for RustealError
Source§impl Display for RustealError
impl Display for RustealError
Source§impl Error for RustealError
impl Error for RustealError
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<Error> for RustealError
impl From<Error> for RustealError
Source§impl From<Error> for RustealError
impl From<Error> for RustealError
Source§impl From<ErrorKind> for RustealError
impl From<ErrorKind> for RustealError
Source§impl From<FromUtf8Error> for RustealError
impl From<FromUtf8Error> for RustealError
Source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ParseBoolError> for RustealError
impl From<ParseBoolError> for RustealError
Source§fn from(error: ParseBoolError) -> Self
fn from(error: ParseBoolError) -> Self
Converts to this type from the input type.
Source§impl From<ParseCharError> for RustealError
impl From<ParseCharError> for RustealError
Source§fn from(error: ParseCharError) -> Self
fn from(error: ParseCharError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for RustealError
impl From<ParseFloatError> for RustealError
Source§fn from(error: ParseFloatError) -> Self
fn from(error: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for RustealError
impl From<ParseIntError> for RustealError
Source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<RustealErrorCode> for RustealError
impl From<RustealErrorCode> for RustealError
Source§fn from(code: RustealErrorCode) -> Self
fn from(code: RustealErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for RustealError
impl From<TryFromIntError> for RustealError
Source§fn from(error: TryFromIntError) -> Self
fn from(error: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for RustealError
impl From<Utf8Error> for RustealError
Auto Trait Implementations§
impl !RefUnwindSafe for RustealError
impl !UnwindSafe for RustealError
impl Freeze for RustealError
impl Send for RustealError
impl Sync for RustealError
impl Unpin for RustealError
impl UnsafeUnpin for RustealError
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