Zum Hauptinhalt springen

TErrorOptions

TErrorOptions = object

Properties​

key​

key: string


data?​

optional data: object


language?​

optional language: string


logLevel?​

optional logLevel: otrisLogger.LogLevels


cause?​

optional cause: unknown

The underlying technical reason, appended to the translated message untranslated - an Error, the result of getLastError() or any other value. Use this for failures whose message would not change what the user does next (a failing sync(), a database error): the translated key provides the actionable frame, the cause the technical detail for support.