Pip-Services-Commons-Dotnet
|
Factory to create serializeable ErrorDescription from ApplicationException or from arbitrary errors. More...
Static Public Member Functions | |
static ErrorDescription | Create (ApplicationException ex) |
Creates a serializable ErrorDescription from error object. More... | |
static ErrorDescription | Create (Exception ex, string correlationId=null) |
Creates a serializable ErrorDescription from throwable object with unknown error category. More... | |
Static Private Member Functions | |
static string | ComposeCause (Exception error) |
Factory to create serializeable ErrorDescription from ApplicationException or from arbitrary errors.
The ErrorDescriptions are used to pass errors through the wire between microservices implemented in different languages.They allow to restore exceptions on the receiving side close to the original type and preserve additional information.
|
static |
Creates a serializable ErrorDescription from error object.
ex | an error object |
|
static |
Creates a serializable ErrorDescription from throwable object with unknown error category.
ex | an error object |
correlationId | (optional) a unique transaction id to trace execution through call chain. |