diff options
author | HombreLaser <sebastian-440@live.com> | 2022-11-23 17:56:52 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2022-11-23 17:56:52 -0600 |
commit | 52239a499dfff1fb4344419ee732d447f7fb3347 (patch) | |
tree | b8837fe130ac9e5706a3083f870256bef18736c4 | |
parent | ccfe519bc75a95bae4f8f99b0b73a90c367f6272 (diff) |
AƱadidos nuevos tipos de errores
-rw-r--r-- | Errors/InvalidInputError.cs | 7 | ||||
-rw-r--r-- | Errors/NotFoundError.cs | 7 |
2 files changed, 14 insertions, 0 deletions
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 |