You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
etesync-android/app/src/main/java/at/bitfire/davdroid/journalmanager/Exceptions.java

32 lines
852 B

package at.bitfire.davdroid.journalmanager;
public class Exceptions {
public static class UnauthorizedException extends HttpException {
public UnauthorizedException(String message) {
super(401, message);
}
}
public static class ServiceUnavailableException extends HttpException {
public ServiceUnavailableException(String message) {
super(message);
}
}
public static class HttpException extends Exception {
public HttpException(String message) {
super(message);
}
public HttpException(int status, String message) {
super(status + " " + message);
}
}
public static class IntegrityException extends Exception {
public IntegrityException(String message) {
super(message);
}
}
}