Struct rutie::AnyException [−][src]
pub struct AnyException { /* fields omitted */ }
Methods from Deref<Target = Value>
Trait Implementations
Construct a new Exception object, optionally passing in a message. Read more
With no argument, or if the argument is the same as the receiver,
return the receiver. Otherwise, create a new exception object of
the same class as the receiver, but with a message equal
to string.to_str
. Read more
Returns any backtrace associated with the exception. The backtrace is an array of strings, each containing either “filename:lineNo: in `method’‘’ or “filename:lineNo.‘’ Read more
Returns any backtrace associated with the exception. This method is similar to #backtrace, but the backtrace is an array of Thread::Backtrace::Location. Read more
Returns the previous exception at the time this exception was raised. This is useful for wrapping exceptions and retaining the original exception information. Read more
Returns the result of invoking exception.to_s
. Normally this
returns the exception’s message or name. Read more
Sets the backtrace information associated with exc. The backtrace must be an array of String objects or a single String in the format described in #backtrace. Read more
Returns a singleton class of current object. Read more
Gets an immutable reference to the Rust structure which is wrapped into a Ruby object. Read more
Gets a mutable reference to the Rust structure which is wrapped into a Ruby object.
Defines an instance method for the given class or object. Read more
Defines a private instance method for the given class or object. Read more
Defines a class method for given class or singleton method for object. Read more
An alias for define_method
(similar to Ruby syntax def some_method
).
An alias for define_private_method
(similar to Ruby syntax private def some_method
).
An alias for define_singleton_method
(similar to Ruby def self.some_method
).
Calls a given method on an object similarly to Ruby Object#send
method Read more
Checks whether the object responds to given method Read more
fn protect_send(
&self,
method: &str,
arguments: &[AnyObject]
) -> Result<AnyObject, AnyException>
fn protect_send(
&self,
method: &str,
arguments: &[AnyObject]
) -> Result<AnyObject, AnyException>
protect_send
returns Result<AnyObject, AnyObject> Read more
fn protect_public_send(
&self,
method: &str,
arguments: &[AnyObject]
) -> Result<AnyObject, AnyException>
fn protect_public_send(
&self,
method: &str,
arguments: &[AnyObject]
) -> Result<AnyObject, AnyException>
protect_public_send
returns Result<AnyObject, AnyObject> Read more
Converts struct to AnyObject
Read more
Gets an instance variable of object Read more
Sets an instance variable for object Read more
Unsafely casts current object to the specified Ruby type Read more
Safely casts current object to the specified Ruby type Read more