pub struct RenderTargetNotReadyException { /* private fields */ }Expand description
The error a render target reports when it cannot be drawn to yet.
Implementations§
Source§impl RenderTargetNotReadyException
impl RenderTargetNotReadyException
Sourcepub fn new_with_message(message: impl Into<String>) -> Self
pub fn new_with_message(message: impl Into<String>) -> Self
Creates the exception with the given message.
Sourcepub fn new_with_inner_exception(inner_exception: Rc<dyn Error>) -> Self
pub fn new_with_inner_exception(inner_exception: Rc<dyn Error>) -> Self
Creates the exception for the error that caused it.
Sourcepub fn new_with_message_and_inner_exception(
message: impl Into<String>,
inner_exception: Rc<dyn Error>,
) -> Self
pub fn new_with_message_and_inner_exception( message: impl Into<String>, inner_exception: Rc<dyn Error>, ) -> Self
Creates the exception with the given message, for the error that caused it.
Sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
The message that describes the error: the given one, or the default message of the exception.
Sourcepub fn inner_exception(&self) -> Option<&Rc<dyn Error>>
pub fn inner_exception(&self) -> Option<&Rc<dyn Error>>
The error that caused the exception, if any.
Trait Implementations§
Source§impl Error for RenderTargetNotReadyException
impl Error for RenderTargetNotReadyException
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<RenderTargetNotReadyException> for RenderTargetError
impl From<RenderTargetNotReadyException> for RenderTargetError
Source§fn from(error: RenderTargetNotReadyException) -> Self
fn from(error: RenderTargetNotReadyException) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RenderTargetNotReadyException
impl !Send for RenderTargetNotReadyException
impl !Sync for RenderTargetNotReadyException
impl !UnwindSafe for RenderTargetNotReadyException
impl Freeze for RenderTargetNotReadyException
impl Unpin for RenderTargetNotReadyException
impl UnsafeUnpin for RenderTargetNotReadyException
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more