Click or drag to resize

ExceptionExtensionsIsCodedException Method

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

Checks if the type of the specified instance of Exception or a derived class has a CodedExceptionAttribute.

Namespace:  NerdyDuck.CodedExceptions
Assembly:  NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntax
public static bool IsCodedException(
	this 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, .

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionex is .
TypeLoadExceptionA custom attribute type cannot be loaded.
See Also