C# 클래스 IronRuby.Runtime.RubyExceptionData

파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

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