pub struct RustealError { /* private fields */ }Implementations§
Source§impl RustealError
impl RustealError
pub fn new(kind: ErrorKind) -> RustealError
pub fn with_message( kind: ErrorKind, message: impl Into<Cow<'static, str>>, ) -> RustealError
pub fn msg(message: impl Into<Cow<'static, str>>) -> RustealError
pub fn other(error: impl Error + Send + Sync + 'static) -> RustealError
pub fn object_destroyed() -> RustealError
pub fn invalid_cast() -> RustealError
pub fn invalid_cast_to( object: UObjectHandle, target: UClassHandle, ) -> RustealError
pub fn property_not_found(name: impl Into<Cow<'static, str>>) -> RustealError
pub fn function_not_found(name: impl Into<Cow<'static, str>>) -> RustealError
pub fn type_mismatch() -> RustealError
pub fn null_argument() -> RustealError
pub fn index_out_of_range() -> RustealError
pub fn invalid_operation(message: impl Into<Cow<'static, str>>) -> RustealError
pub fn internal(message: impl Into<Cow<'static, str>>) -> RustealError
pub fn buffer_too_small() -> RustealError
pub fn context(self, context: impl Into<Cow<'static, str>>) -> RustealError
pub fn message_or(self, message: impl Into<Cow<'static, str>>) -> RustealError
pub fn with_source( self, source: impl Error + Send + Sync + 'static, ) -> RustealError
pub fn on(self, object: &impl UeHandle) -> RustealError
pub fn on_handle(self, object: UObjectHandle) -> RustealError
pub fn on_class(self, class: UClassHandle) -> RustealError
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§fn from(error: Error) -> RustealError
fn from(error: Error) -> RustealError
Converts to this type from the input type.
Source§impl From<Error> for RustealError
impl From<Error> for RustealError
Source§fn from(error: Error) -> RustealError
fn from(error: Error) -> RustealError
Converts to this type from the input type.
Source§impl From<ErrorKind> for RustealError
impl From<ErrorKind> for RustealError
Source§fn from(kind: ErrorKind) -> RustealError
fn from(kind: ErrorKind) -> RustealError
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for RustealError
impl From<FromUtf8Error> for RustealError
Source§fn from(error: FromUtf8Error) -> RustealError
fn from(error: FromUtf8Error) -> RustealError
Converts to this type from the input type.
Source§impl From<ParseBoolError> for RustealError
impl From<ParseBoolError> for RustealError
Source§fn from(error: ParseBoolError) -> RustealError
fn from(error: ParseBoolError) -> RustealError
Converts to this type from the input type.
Source§impl From<ParseCharError> for RustealError
impl From<ParseCharError> for RustealError
Source§fn from(error: ParseCharError) -> RustealError
fn from(error: ParseCharError) -> RustealError
Converts to this type from the input type.
Source§impl From<ParseFloatError> for RustealError
impl From<ParseFloatError> for RustealError
Source§fn from(error: ParseFloatError) -> RustealError
fn from(error: ParseFloatError) -> RustealError
Converts to this type from the input type.
Source§impl From<ParseIntError> for RustealError
impl From<ParseIntError> for RustealError
Source§fn from(error: ParseIntError) -> RustealError
fn from(error: ParseIntError) -> RustealError
Converts to this type from the input type.
Source§impl From<RustealErrorCode> for RustealError
impl From<RustealErrorCode> for RustealError
Source§fn from(code: RustealErrorCode) -> RustealError
fn from(code: RustealErrorCode) -> RustealError
Converts to this type from the input type.
Source§impl From<TryFromIntError> for RustealError
impl From<TryFromIntError> for RustealError
Source§fn from(error: TryFromIntError) -> RustealError
fn from(error: TryFromIntError) -> RustealError
Converts to this type from the input type.
Source§impl From<Utf8Error> for RustealError
impl From<Utf8Error> for RustealError
Source§fn from(error: Utf8Error) -> RustealError
fn from(error: Utf8Error) -> RustealError
Converts to this type from the input type.
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