Zpracování chyb z API

This commit is contained in:
mates committed 2023-09-18 22:38:04 +02:00
1 parent 8a67325c85
commit bc181defa8
5 files changed
+96 -45

No files matched your search

+4 -1
View File
@@ -37,4 +37,7 @@ export const getDayOfWeekIndex = (date: Date) => {
export function getIsWeekend(date: Date) {
const index = getDayOfWeekIndex(date);
return index == 5 || index == 6;
}
}
// TODO umístit do samostatného souboru
export class InsufficientPermissions extends Error { }