Skip to main content

constructor

Summary

Creates an instance of SecurityError.

Signature

Parameters

message

  • Type:string
The primary, human-readable error message.

code

  • Type:
  • Optional: Yes
The standardized error code.

context

  • Type:
  • Optional: Yes
Additional structured context about the error.