fn cause(&self) -> Option<Self> {
        let result = vm::call_method(self.value(), "cause", &[]);

        if result.is_nil() {
            return None;
        }

        Some(Self::from(result))
    }
/// Returns the previous exception at the time this
/// exception was raised. This is useful for wrapping exceptions
/// and retaining the original exception information.
///
/// # Examples
/// ```
/// use rutie::{AnyException, Exception, Object, VM, RString};
/// # VM::init();
///
/// let x = AnyException::new("StandardError", Some("something went wrong"));
///
/// assert!(x.cause().is_none());
/// ```
Returns the previous exception at the time this
exception was raised. This is useful for wrapping exceptions
and retaining the original exception information.
Returns the previous exception at the time this exception was raised . This is useful for wrapping exceptions and retaining the original exception information .
fn cause(&self) -> Option<Self> {
        let result = vm::call_method(self.value(), "cause", &[]);
        if result.is_nil() {
            return None;
        }
        Some(Self::from(result))
    }
fn cause ( & self ) -> Option < Self > { let result = vm :: call_method ( self . value ( ) , " " , & [ ] ) ; if result . is_nil ( ) { return None ; } Some ( Self :: from ( result ) ) }
Returns the previous exception at the time this
exception was raised.
Returns the previous exception at the time this exception was raised .
&self
&self
examples
```
use rutie::{AnyException, Exception, Object, VM, RString}.
` ` ` use rutie :: { AnyException Exception Object VM RString } .
vm::init();
let x = AnyException::new("StandardError", Some("something went wrong")).


let x = AnyException :: new ( " StandardError " Some ( " something went wrong " )) .