mirror of
https://github.com/detleph/server.git
synced 2026-09-05 16:06:21 +02:00
Add controller for roleSchemas (unfinished)
+ Refine error messages for role schemas + Add role schema routes + Add RESULT_SCHEMA DataType + Add SchemaError.isSchemaError() type guard
This commit is contained in:
@@ -6,4 +6,8 @@ export default class SchemaError extends ForwardableError {
|
||||
constructor(message: string) {
|
||||
super(400, message);
|
||||
}
|
||||
|
||||
public static isSchemaError(err: any): err is SchemaError {
|
||||
return err.__oid === "SCHEMA_ERROR";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user