SecureError extends Error
This error is thrown by some methods when a security violation occurs.
See Exceptions and Secure for more information.
constructor
(opts: object | string)
If opts is a string, then it contains the message description of the problem. The technical will default to being undefined.
If opts is an objec†, then:
{
message: string; // This message contains an end-user-facing error message that can be displayed in the UI.
technical?: string; // If present, this should contain additional technical information that would be relevant to a software developer.
}
instance
message: string
This a description of the security violation.
stack?: string
This contains the stack trace if available.
technical?: string
If present, this should contain additional technical information that would be relevant to a software developer.
toPlain(): object
This returns a "Plain old JavaScript object" representation of this exception that is suitable for stringifying to JSON.
toString(): string
This returns message.