Click or drag to resize

ErrorExtensionsAsSoxException Method

Error Extension Method

Namespace:  PSI.Sox
Assembly:  PSI.Sox (in PSI.Sox.dll) Version: 2.1
Syntax
public static SoxException AsSoxException(
	this Exception ex,
	SoxErrorCode errorCode
)

Parameters

ex
Type: SystemException
Exception
errorCode
Type: PSI.SoxSoxErrorCode
SoxErrorCode

Return Value

Type: SoxException

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).
See Also