Skip to main content

RustealError

Struct RustealError 

Source
pub struct RustealError { /* private fields */ }

Implementations§

Source§

impl RustealError

Source

pub fn new(kind: ErrorKind) -> RustealError

Source

pub fn with_message( kind: ErrorKind, message: impl Into<Cow<'static, str>>, ) -> RustealError

Source

pub fn msg(message: impl Into<Cow<'static, str>>) -> RustealError

Source

pub fn other(error: impl Error + Send + Sync + 'static) -> RustealError

Source

pub fn object_destroyed() -> RustealError

Source

pub fn invalid_cast() -> RustealError

Source

pub fn invalid_cast_to( object: UObjectHandle, target: UClassHandle, ) -> RustealError

Source

pub fn property_not_found(name: impl Into<Cow<'static, str>>) -> RustealError

Source

pub fn function_not_found(name: impl Into<Cow<'static, str>>) -> RustealError

Source

pub fn type_mismatch() -> RustealError

Source

pub fn null_argument() -> RustealError

Source

pub fn index_out_of_range() -> RustealError

Source

pub fn invalid_operation(message: impl Into<Cow<'static, str>>) -> RustealError

Source

pub fn internal(message: impl Into<Cow<'static, str>>) -> RustealError

Source

pub fn buffer_too_small() -> RustealError

Source

pub fn context(self, context: impl Into<Cow<'static, str>>) -> RustealError

Source

pub fn message_or(self, message: impl Into<Cow<'static, str>>) -> RustealError

Source

pub fn with_source( self, source: impl Error + Send + Sync + 'static, ) -> RustealError

Source

pub fn on(self, object: &impl UeHandle) -> RustealError

Source

pub fn on_handle(self, object: UObjectHandle) -> RustealError

Source

pub fn on_class(self, class: UClassHandle) -> RustealError

Source

pub fn kind(&self) -> ErrorKind

Source

pub fn is(&self, kind: ErrorKind) -> bool

Source

pub fn message(&self) -> Option<&str>

Source

pub fn subject(&self) -> Option<&UeSubject>

Source

pub fn location(&self) -> &'static Location<'static>

Source

pub fn contexts( &self, ) -> impl Iterator<Item = (&str, &'static Location<'static>)>

Source

pub fn causes(&self) -> impl Iterator<Item = &(dyn Error + 'static)>

Source

pub fn report(&self) -> String

Source

pub fn engine_message(&self) -> Option<&str>

Source

pub fn source_file(&self) -> String

Source

pub fn log(&self, level: u8)

Trait Implementations§

Source§

impl Debug for RustealError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for RustealError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for RustealError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Box<dyn Error + Sync + Send>> for RustealError

Source§

fn from(error: Box<dyn Error + Sync + Send>) -> RustealError

Converts to this type from the input type.
Source§

impl From<Error> for RustealError

Source§

fn from(error: Error) -> RustealError

Converts to this type from the input type.
Source§

impl From<Error> for RustealError

Source§

fn from(error: Error) -> RustealError

Converts to this type from the input type.
Source§

impl From<ErrorKind> for RustealError

Source§

fn from(kind: ErrorKind) -> RustealError

Converts to this type from the input type.
Source§

impl From<FromUtf8Error> for RustealError

Source§

fn from(error: FromUtf8Error) -> RustealError

Converts to this type from the input type.
Source§

impl From<ParseBoolError> for RustealError

Source§

fn from(error: ParseBoolError) -> RustealError

Converts to this type from the input type.
Source§

impl From<ParseCharError> for RustealError

Source§

fn from(error: ParseCharError) -> RustealError

Converts to this type from the input type.
Source§

impl From<ParseFloatError> for RustealError

Source§

fn from(error: ParseFloatError) -> RustealError

Converts to this type from the input type.
Source§

impl From<ParseIntError> for RustealError

Source§

fn from(error: ParseIntError) -> RustealError

Converts to this type from the input type.
Source§

impl From<RustealErrorCode> for RustealError

Source§

fn from(code: RustealErrorCode) -> RustealError

Converts to this type from the input type.
Source§

impl From<TryFromIntError> for RustealError

Source§

fn from(error: TryFromIntError) -> RustealError

Converts to this type from the input type.
Source§

impl From<Utf8Error> for RustealError

Source§

fn from(error: Utf8Error) -> RustealError

Converts to this type from the input type.
Source§

impl PartialEq<ErrorKind> for RustealError

Source§

fn eq(&self, kind: &ErrorKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.