ErrorFromException Method |
Gets the error associated with the exception or creates one.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic static IError FromException(
Exception ex
)
Public Shared Function FromException (
ex As Exception
) As IError
public:
static IError^ FromException(
Exception^ ex
)
Parameters
- ex Exception
-
Get the error associated with the exception or create one.
Return Value
IError
An exception caused by a
Module method call.
Remarks
Module method calls can throw exceptions.
When that happens, the
Error object for
the exception can be retrieved using FromException.
Example
Gets the error associated with the exception or creates one.
See Also