C# Класс IronRuby.Runtime.RubyExceptionData

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AssociateInstance RubyExceptionData
CaptureExceptionTrace void
DynamicSetBacktrace void
HandleException System.Exception
RubyExceptionData System
TryGetInstance RubyExceptionData

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ActiveExceptionHandled() публичный статический Метод

public static ActiveExceptionHandled ( Exception visibleException ) : void
visibleException System.Exception
Результат void

CreateBacktrace() публичный статический Метод

public static CreateBacktrace ( RubyContext context, int skipFrames ) : RubyArray
context RubyContext
skipFrames int
Результат RubyArray

GetClrMessage() публичный статический Метод

public static GetClrMessage ( RubyClass exceptionClass, object message ) : string
exceptionClass IronRuby.Builtins.RubyClass
message object
Результат string

GetClrMessage() публичный статический Метод

public static GetClrMessage ( RubyContext context, object message ) : string
context RubyContext
message object
Результат string

GetInstance() публичный статический Метод

Gets the instance data associated with the exception
public static GetInstance ( Exception e ) : RubyExceptionData
e System.Exception
Результат RubyExceptionData

InitializeException() публичный статический Метод

public static InitializeException ( Exception exception, object message ) : Exception
exception System.Exception
message object
Результат System.Exception