Factory used to create a serializeable ErrorDescription from ApplicationException or from arbitrary errors.
- Error descriptions 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.
Creates a serializable ErrorDescription from error object.
public staticcreate(error: any): ErrorDescription
- error: any - an error object
- returns: ErrorDescription - a serializeable ErrorDescription object that describes the error.