Creates an instance of ApplicationError.
the error to "wrap". Note that this isn't always an Error object because it is possible to throw non Error objects in javascript.
OptionalfriendlyMessage: stringmessage to display (to be used for logging).
OptionalfriendlyMessageKey: stringi18n key for the message (to be used in UI).
OptionalfriendlyHeaderKey: stringi18n key for the header (to be used in UI).
Optionalfriendlyi18n key for the header (to be used in UI).
Optionalfriendlymessage to display (to be used for logging).
Optionalfriendlyi18n key for the message (to be used in UI).
Optional ReadonlyhttpOptional ReadonlyhttpReadonlyidError identifier; when Application Insight is enabled, this is used to track exception.
Standard error class to be used to wrap any error to be shown on UI.