release: WRNexusJS 0.7.0
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export class SecurityError extends Error {
|
||||
readonly code: string;
|
||||
readonly status: number;
|
||||
|
||||
constructor(code: string, message: string, status = 400, options?: ErrorOptions) {
|
||||
super(message, options);
|
||||
this.name = "SecurityError";
|
||||
this.code = code;
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user