C# Class IronRuby.Runtime.RubyExceptionData

Show file Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
AssociateInstance RubyExceptionData
CaptureExceptionTrace void
DynamicSetBacktrace void
HandleException System.Exception
RubyExceptionData System
TryGetInstance RubyExceptionData

Public Methods

Method Description
ActiveExceptionHandled ( Exception visibleException ) : void
CreateBacktrace ( RubyContext context, int skipFrames ) : RubyArray
GetClrMessage ( RubyClass exceptionClass, object message ) : string
GetClrMessage ( RubyContext context, object message ) : string
GetInstance ( Exception e ) : RubyExceptionData

Gets the instance data associated with the exception

InitializeException ( Exception exception, object message ) : Exception

Private Methods

Method Description
AssociateInstance ( Exception e ) : RubyExceptionData
CaptureExceptionTrace ( IronRuby.Runtime.RubyScope scope ) : void

Builds backtrace for the exception if it wasn't built yet. Captures a full stack trace starting with the current frame and combines it with the trace of the exception. Called from compiled code.

DynamicSetBacktrace ( RubyContext context, RubyArray backtrace ) : void

This is called by the IronRuby runtime to set the backtrace for an exception that has being raised. Note that the backtrace may be set directly by user code as well. However, that uses a different code path.

HandleException ( RubyContext context, Exception exception ) : Exception
RubyExceptionData ( Exception exception ) : System
TryGetInstance ( Exception e ) : RubyExceptionData

Method Details

ActiveExceptionHandled() public static method

public static ActiveExceptionHandled ( Exception visibleException ) : void
visibleException System.Exception
return void

CreateBacktrace() public static method

public static CreateBacktrace ( RubyContext context, int skipFrames ) : RubyArray
context RubyContext
skipFrames int
return RubyArray

GetClrMessage() public static method

public static GetClrMessage ( RubyClass exceptionClass, object message ) : string
exceptionClass IronRuby.Builtins.RubyClass
message object
return string

GetClrMessage() public static method

public static GetClrMessage ( RubyContext context, object message ) : string
context RubyContext
message object
return string

GetInstance() public static method

Gets the instance data associated with the exception
public static GetInstance ( Exception e ) : RubyExceptionData
e System.Exception
return RubyExceptionData

InitializeException() public static method

public static InitializeException ( Exception exception, object message ) : Exception
exception System.Exception
message object
return System.Exception