Click or drag to resize

CodedExceptionAttributeIsCodedException Method

[This is preliminary documentation and is subject to change.]

Checks if the type of the specified instance of Exception or a derived class is decorated with a CodedExceptionAttribute.

Namespace:  NerdyDuck.CodedExceptions
Assembly:  NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntax
public static bool IsCodedException(
	Exception ex
)
View Source

Parameters

ex
Type: SystemException
The Exception instance to check for a CodedExceptionAttribute.

Return Value

Type: Boolean
, if the type has a CodedExceptionAttribute; otherwise, .
Exceptions
ExceptionCondition
ArgumentNullExceptionex is .
TypeLoadExceptionA custom attribute type cannot be loaded.
See Also