|
|
@ -14,11 +14,12 @@ class Exception implements ApiException {
|
|
|
|
constructor(readonly error: any, readonly status: number) {}
|
|
|
|
constructor(readonly error: any, readonly status: number) {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export namespace Exceptions {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Création d'une 404
|
|
|
|
* Création d'une 404
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
export module Exceptions {
|
|
|
|
|
|
|
|
export class NotFoundException extends Exception {
|
|
|
|
export class NotFoundException extends Exception {
|
|
|
|
constructor(error: any) {
|
|
|
|
constructor(error: any) {
|
|
|
|
super(error, 404)
|
|
|
|
super(error, 404)
|
|
|
|