Options
All
  • Public
  • Public/Protected
  • All
Menu

Serializes an Error by filling in the provided template. Content-type is based on the constructor parameter.

In case the input Error has an errorCode value, the converter will look in the descriptions for a file with the exact same name as that error code + extension. The templating engine will then be applied to that file. That result will be passed as an additional parameter to the main templating call, using the variable codeMessage.

Hierarchy

Index

Constructors

constructor

Properties

Private Readonly codeTemplatesPath

codeTemplatesPath: string

Private Readonly contentType

contentType: string

Private Readonly extension

extension: string

Protected inputTypes

inputTypes: Promise<ValuePreferences>

Private Readonly mainTemplatePath

mainTemplatePath: string

Protected outputTypes

outputTypes: Promise<ValuePreferences>

Private Readonly templateEngine

templateEngine: TemplateEngine<Dict<any>>

Methods

canHandle

getInputTypes

getOutputTypes

handle

handleSafe