Skip to content
Snippets Groups Projects
Commit e5770336 authored by Martin Vogel's avatar Martin Vogel
Browse files

#414 Refactor exceptions

parent 80b9bf1a
No related branches found
No related tags found
2 merge requests!2#414 Remaining changes from MR,!1planning#414 Methoden Signaturen (Zwischenstand)
......@@ -3,7 +3,11 @@ package de.fitko.fitconnect.api.exceptions;
/**
* An error that occurred decrypting data or attachments
*/
public class DecryptionException extends RuntimeException {
public class DecryptionException extends Exception {
public DecryptionException(String errorMessage) {
super(errorMessage);
}
public DecryptionException(String errorMessage, Throwable error) {
super(errorMessage, error);
......
package de.fitko.fitconnect.api.exceptions;
public class InitializationException extends RuntimeException {
public InitializationException(String errorMessage) {
super(errorMessage);
}
public InitializationException(String errorMessage, Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions;
/**
* An error
*/
public class VerificationException extends RuntimeException {
public VerificationException(String errorMessage, Throwable error) {
super(errorMessage, error);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment