Refactor org and user routes

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
Sebastian Martinez
2022-02-08 10:16:45 +01:00
committed by Alexis Sellier
parent 82a2ac6f64
commit a43ac33ddc
24 changed files with 619 additions and 799 deletions
+10
View File
@@ -24,6 +24,16 @@ export class Unreachable extends Error {
}
}
export class NotFoundError extends Error {
constructor(message?: string) {
if (message) {
super(`not found: ${message}`);
} else {
super(`not found`);
}
}
}
class AssertionError extends Error {
constructor(message?: string) {
if (message) {