From 52239a499dfff1fb4344419ee732d447f7fb3347 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Wed, 23 Nov 2022 17:56:52 -0600 Subject: AƱadidos nuevos tipos de errores MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Errors/InvalidInputError.cs | 7 +++++++ Errors/NotFoundError.cs | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 Errors/InvalidInputError.cs create mode 100644 Errors/NotFoundError.cs diff --git a/Errors/InvalidInputError.cs b/Errors/InvalidInputError.cs new file mode 100644 index 0000000..2df2e55 --- /dev/null +++ b/Errors/InvalidInputError.cs @@ -0,0 +1,7 @@ +namespace BackendPIA.Errors { + public class InvalidInputError : ErrorBase { + public int Status { get { return base.Status; } } + public string Message { get { return base.Message; }} + public InvalidInputError(int status, string message) : base(status, message) {} + } +} \ No newline at end of file diff --git a/Errors/NotFoundError.cs b/Errors/NotFoundError.cs new file mode 100644 index 0000000..c4efc63 --- /dev/null +++ b/Errors/NotFoundError.cs @@ -0,0 +1,7 @@ +namespace BackendPIA.Errors { + public class NotFoundError : ErrorBase { + public int Status { get { return base.Status; } } + public string Message { get { return base.Message; }} + public NotFoundError(int status, string message) : base(status, message) {} + } +} \ No newline at end of file -- cgit v1.2.3