pub struct IllegalStateException { /* private fields */ }
Expand description
Exception thrown when a method is invoked at an illegal or inappropriate time.
This exception indicates that a method has been invoked at an inappropriate time or that the object is in an inappropriate state for the requested operation. It is similar to Java’s IllegalStateException.
Implementations§
Trait Implementations§
Source§impl Debug for IllegalStateException
impl Debug for IllegalStateException
Source§impl Display for IllegalStateException
impl Display for IllegalStateException
Source§impl Error for IllegalStateException
impl Error for IllegalStateException
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for IllegalStateException
impl RefUnwindSafe for IllegalStateException
impl Send for IllegalStateException
impl Sync for IllegalStateException
impl Unpin for IllegalStateException
impl UnwindSafe for IllegalStateException
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