@ -1,6 +1,5 @@
import { Router } from "express";
import { Exceptions } from "../utils/exception";
import { Ingredient } from "../types/ingredients";
import { IngredientsGateway } from "../gateways/ingredients.gateway";
@ -1,5 +1,4 @@
import { Recipe } from "../types/recipes";
import { RecipeGateway } from "../gateways/recipe.gateway";
@ -14,11 +14,12 @@ class Exception implements ApiException {
constructor(readonly error: any, readonly status: number) {}
}
/**
export namespace Exceptions {
* Création d'une 404
*/
export module Exceptions {
export class NotFoundException extends Exception {
constructor(error: any) {
super(error, 404)