Add date not allowed to errors
This commit is contained in:
parent
fe134a4172
commit
83a8f62fa8
|
@ -28,6 +28,8 @@ public class APIRequestException extends Exception {
|
|||
case "too many results":
|
||||
errorType = EnumError.TOOMANYSCHOOLS;
|
||||
break;
|
||||
case "no allowed date":
|
||||
errorType = EnumError.DATENOTALLOWED;
|
||||
default:
|
||||
errorType = EnumError.UNKNOWN;
|
||||
break;
|
||||
|
|
|
@ -8,6 +8,7 @@ public enum EnumError {
|
|||
TOOMANYSCHOOLS,
|
||||
NOCONNECTION,
|
||||
NOPERMISSION,
|
||||
ELEMENTNOTFOUND
|
||||
ELEMENTNOTFOUND,
|
||||
DATENOTALLOWED
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue