mirror of
https://github.com/etesync/android
synced 2025-07-12 01:28:20 +00:00

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.
32 lines
852 B
Java
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);
|
|
}
|
|
}
|
|
}
|