Zpracování chyb z API

This commit is contained in:
2023-09-18 22:38:04 +02:00
parent 8a67325c85
commit bc181defa8
5 changed files with 96 additions and 45 deletions

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 { }