summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Errors/InvalidInputError.cs7
-rw-r--r--Errors/NotFoundError.cs7
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