Creates an instance of KindSentryError.
The error message.
Optionalkind: string = Errors.UnknownThe kind of error. This will be combined with
prefix to form the name of the error, i.e. PrefixSentryKindError.
Defaults to Errors.Unknown.
Optionaloptions: Options = ...Options for constructing the error.
The error that caused this error.
The metadata to attach to the error.
A prefix to prepend the name of the error.
The name of the error.
The number of stack frames to remove from the error's stack. This can be used to ensure that the top call of the stack references the point at which an error is thrown which can be useful when helper functions are used to build the error being thrown.
ReadonlycauseReadonlyframesThe number of stack frames to pop from the top of the stack.
This is used by Sentry to determine how to process the stack for us.
ReadonlykindReadonlymetadataReadonlyoriginalOptionalstackStatic OptionalprepareOptional override for formatting stack traces
Staticstack
An error that can be used to capture details for reporting to Sentry.
The error kind will be a tag on the reported Sentry event.
KindSentryError