diff options
author | HombreLaser <sebastian-440@live.com> | 2022-11-18 16:32:38 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2022-11-18 16:32:38 -0600 |
commit | a640608ab8ff895be3125ebf75a4d3d19139f5c3 (patch) | |
tree | 5634b61500b4925bb07f918ec5780a93186bb89e /Errors | |
parent | 22b5afd25bc29f920f46456c0a6acf6847a9af5e (diff) |
Añadido login de administradores
Diffstat (limited to 'Errors')
-rw-r--r-- | Errors/ErrorBase.cs | 11 | ||||
-rw-r--r-- | Errors/InvalidLoginError.cs | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Errors/ErrorBase.cs b/Errors/ErrorBase.cs new file mode 100644 index 0000000..e82e932 --- /dev/null +++ b/Errors/ErrorBase.cs @@ -0,0 +1,11 @@ +namespace BackendPIA.Errors { + public abstract class ErrorBase { + protected int Status { get; } + protected string Message { get; } + + public ErrorBase(int status, string message) { + Status = status; + Message = message; + } + } +}
\ No newline at end of file diff --git a/Errors/InvalidLoginError.cs b/Errors/InvalidLoginError.cs new file mode 100644 index 0000000..c776d00 --- /dev/null +++ b/Errors/InvalidLoginError.cs @@ -0,0 +1,5 @@ +namespace BackendPIA.Errors { + public class InvalidLoginError : ErrorBase { + public InvalidLoginError(int status, string message) : base(status, message) {} + } +}
\ No newline at end of file |