Skip to content

Commit f8a8a55

Browse files
committed
create validation error structure
1 parent ee727fc commit f8a8a55

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/structures/error.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ export class SquareCloudBlobError extends Error {
1818
return `${code}${message}`;
1919
}
2020
}
21+
22+
export class SquareCloudValidationError extends SquareCloudBlobError {
23+
constructor(...args: ConstructorParameters<typeof SquareCloudBlobError>) {
24+
super(...args);
25+
this.name = SquareCloudValidationError.name;
26+
}
27+
}

0 commit comments

Comments
 (0)