/
IvanRyabchenko
/
random-coffee-backend
Обзор
Документация
Войти
/
IvanRyabchenko
/
random-coffee-backend
Код
Запросы
1
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
src/utils/errors.ts
20 строк
422 B
Ivan Ryabchenko
feat(categories,products): implement CRUD endpoints with pagination
14 май 2026, 21:01
14 май 2026, 21:01
e356224
Код
Авторство
О чём код?
export class NotFoundError extends Error { constructor(resource: string) { super(`${resource} not found`) this.name = 'NotFoundError' } } export class ConflictError extends Error { constructor(message: string) { super(message) this.name = 'ConflictError' } } export class BadRequestError extends Error { constructor(message: string) { super(message) this.name = 'BadRequestError' } }