diff options
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 |