Méthode | Description | |
---|---|---|
CheckAndThrow ( Expression expr ) : Expression |
Wraps the expression in a check and rethrow.
|
|
CheckAndThrow ( object value ) : object |
Throws the exception if the value represents a light exception
|
|
GetLightException ( object exceptionValue ) : |
Gets the light exception from an object which may contain a light exception. Returns null if the object is not a light exception. Used for throwing the exception at non-light exception boundaries.
|
|
IsLightException ( object value ) : bool |
Checks to see if the provided value is a light exception.
|
|
Rewrite ( Expression expression ) : Expression |
Rewrites the provided expression to support light exceptions. Calls to the returned expression, if not from other light-weight aware calls, need to call GetLightException on return to see if an exception was thrown and if so throw it.
|
|
RewriteExternal ( Expression expression ) : Expression |
Returns a new expression which is re-written for light exceptions but will throw an exception if it escapes the expression. If this expression is part of a larger experssion which is later re-written for light exceptions then it will propagate the light exception up.
|
|
RewriteLazy ( Expression expression ) : Expression |
Returns a new expression which will lazily reduce to a light expression re-written version of the same expression.
|
|
SupportsLightThrow ( this binder ) : bool |
Returns true if the call site binder is a light exception binder and supports light throws. Returns false otherwise.
|
|
Throw ( Expression exceptionValue ) : Expression |
Returns an object which represents a light exception.
|
|
Throw ( Expression exceptionValue, |
Returns an object which represents a light exception.
|
|
Throw ( this binder, Expression exceptionValue ) : Expression |
If the binder supports light exceptions then a light exception throwing expression is returned. Otherwise a normal throwing expression is returned.
|
|
Throw ( this binder, Expression exceptionValue, |
If the binder supports light exceptions then a light exception throwing expression is returned. Otherwise a normal throwing expression is returned.
|
|
Throw ( |
Returns an object which represents a light exception.
|
Méthode | Description | |
---|---|---|
ThrowException ( LightException lightEx ) : void | ||
ToReadOnly ( Expression args ) : ReadOnlyCollection |
public static CheckAndThrow ( Expression expr ) : Expression | ||
expr | Expression | |
Résultat | Expression |
public static CheckAndThrow ( object value ) : object | ||
value | object | |
Résultat | object |
public static GetLightException ( object exceptionValue ) : |
||
exceptionValue | object | |
Résultat |
public static IsLightException ( object value ) : bool | ||
value | object | |
Résultat | bool |
public static Rewrite ( Expression expression ) : Expression | ||
expression | Expression | |
Résultat | Expression |
public static RewriteExternal ( Expression expression ) : Expression | ||
expression | Expression | |
Résultat | Expression |
public static RewriteLazy ( Expression expression ) : Expression | ||
expression | Expression | |
Résultat | Expression |
public static SupportsLightThrow ( this binder ) : bool | ||
binder | this | |
Résultat | bool |
public static Throw ( Expression exceptionValue ) : Expression | ||
exceptionValue | Expression | |
Résultat | Expression |
public static Throw ( Expression exceptionValue, |
||
exceptionValue | Expression | |
retType | ||
Résultat | Expression |
public static Throw ( this binder, Expression exceptionValue ) : Expression | ||
binder | this | |
exceptionValue | Expression | |
Résultat | Expression |
public static Throw ( this binder, Expression exceptionValue, |
||
binder | this | |
exceptionValue | Expression | |
retType | ||
Résultat | Expression |
public static Throw ( |
||
exceptionValue | ||
Résultat | object |