1
0
mirror of https://github.com/etesync/android synced 2025-07-12 01:28:20 +00:00
etesync-android/app/src/main/java/at/bitfire/davdroid/journalmanager/Exceptions.java
Tom Hacohen 8b5f87c2d4 Adjust DAVdroid to use the EteSync protocol (mostly working)
This commit includes the major changes between DAVdroid and EteSync. It
adjusts the app to use the EteSync protocol and server. It includes some
ugliness still, and it's a squash of many ugly snapshot commits while
hacking on the initial DAVdroid code.

History should be "clean" from this point onwards.
2017-02-21 17:26:19 +00:00

32 lines
852 B
Java

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);
}
}
}