C# 클래스 Microsoft.Scripting.Actions.ErrorInfo

Encapsulates information about the result that should be produced when a OldDynamicAction cannot be performed. The ErrorInfo can hold one of: an expression which creates an Exception to be thrown an expression which produces a value which should be returned directly to the user and represents an error has occured (for example undefined in JavaScript) an expression which produces a value which should be returned directly to the user but does not actually represent an error. ErrorInfo's are produced by an ActionBinder in response to a failed binding.
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

공개 메소드들

메소드 설명
FromException ( Expression exceptionValue ) : ErrorInfo

Creates a new ErrorInfo which represents an exception that should be thrown.

FromValue ( Expression resultValue ) : ErrorInfo

Creates a new ErrorInfo which represents a value which should be returned to the user.

FromValueNoError ( Expression resultValue ) : ErrorInfo

Crates a new ErrorInfo which represents a value which should be returned to the user but does not represent an error.

비공개 메소드들

메소드 설명
ErrorInfo ( Expression value, ErrorInfoKind kind ) : System.Linq.Expressions

Private constructor - consumers must use static From* factories to create ErrorInfo objects.

메소드 상세

FromException() 공개 정적인 메소드

Creates a new ErrorInfo which represents an exception that should be thrown.
public static FromException ( Expression exceptionValue ) : ErrorInfo
exceptionValue System.Linq.Expressions.Expression
리턴 ErrorInfo

FromValue() 공개 정적인 메소드

Creates a new ErrorInfo which represents a value which should be returned to the user.
public static FromValue ( Expression resultValue ) : ErrorInfo
resultValue System.Linq.Expressions.Expression
리턴 ErrorInfo

FromValueNoError() 공개 정적인 메소드

Crates a new ErrorInfo which represents a value which should be returned to the user but does not represent an error.
public static FromValueNoError ( Expression resultValue ) : ErrorInfo
resultValue System.Linq.Expressions.Expression
리턴 ErrorInfo