Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ErrorDescriptionFactory

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.

see

ErrorDescription

see

ApplicationException

Hierarchy

  • ErrorDescriptionFactory

Index

Methods

Methods

Static create

  • Creates a serializable ErrorDescription from error object.

    Parameters

    • error: any

      an error object

    Returns ErrorDescription

    a serializeable ErrorDescription object that describes the error.

Generated using TypeDoc