C# Class IronRuby.Runtime.RubyExceptionData

Afficher le fichier Open project: jschementi/iron Class Usage Examples

Private Properties

Свойство Type Description
AssociateInstance RubyExceptionData
CaptureExceptionTrace void
DynamicSetBacktrace void
HandleException System.Exception
RubyExceptionData System
TryGetInstance RubyExceptionData

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static ActiveExceptionHandled ( Exception visibleException ) : void
visibleException System.Exception
Résultat void

CreateBacktrace() public static méthode

public static CreateBacktrace ( RubyContext context, int skipFrames ) : RubyArray
context RubyContext
skipFrames int
Résultat RubyArray

GetClrMessage() public static méthode

public static GetClrMessage ( RubyClass exceptionClass, object message ) : string
exceptionClass IronRuby.Builtins.RubyClass
message object
Résultat string

GetClrMessage() public static méthode

public static GetClrMessage ( RubyContext context, object message ) : string
context RubyContext
message object
Résultat string

GetInstance() public static méthode

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

InitializeException() public static méthode

public static InitializeException ( Exception exception, object message ) : Exception
exception System.Exception
message object
Résultat System.Exception