Pip-Services-Commons-Dotnet
Static Public Member Functions | List of all members
PipServices3.Commons.Errors.ApplicationExceptionFactory Class Reference

Factory to recreate exceptions from ErrorDescription values passed through the wire. More...

Static Public Member Functions

static ApplicationException Create (ErrorDescription description)
 Recreates ApplicationException object from serialized ErrorDescription. More...
 
static Exception CreateOriginal (ErrorDescription description)
 

Detailed Description

Factory to recreate exceptions from ErrorDescription values passed through the wire.

See ErrorDescription, ApplicationException

Member Function Documentation

◆ Create()

static ApplicationException PipServices3.Commons.Errors.ApplicationExceptionFactory.Create ( ErrorDescription  description)
static

Recreates ApplicationException object from serialized ErrorDescription.

It tries to restore original exception type using type or error category fields.

Parameters
descriptiona serialized error description received as a result of remote call
Returns
new ApplicationException object from serialized ErrorDescription.

The documentation for this class was generated from the following file: