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

#414 remove comment since the exception class names describe what kind of...

#414 remove comment since the exception class names describe what kind of unexpected behaviour they cover
parent 5158bc06
No related branches found
No related tags found
2 merge requests!2#414 Remaining changes from MR,!1planning#414 Methoden Signaturen (Zwischenstand)
package de.fitko.fitconnect.api.domain.model.events;
public class SecurityEventToken {
}
package de.fitko.fitconnect.api.domain.validation;
/**
* Wrapper for validations including errors that occurred
* Wrapper for validations including an exception
*/
public class ValidationResult {
......@@ -12,7 +12,7 @@ public class ValidationResult {
this.isValid = isValid;
}
private ValidationResult(final boolean isValid, Exception exception) {
private ValidationResult(final boolean isValid, final Exception exception) {
this.isValid = isValid;
this.error = exception;
}
......@@ -21,7 +21,7 @@ public class ValidationResult {
return new ValidationResult(true);
}
public static ValidationResult error(Exception exception) {
public static ValidationResult error(final Exception exception) {
return new ValidationResult(false, exception);
}
......
package de.fitko.fitconnect.api.exceptions;
/**
* An error that occurred during the OAuth authentication
*/
public class AuthenticationException extends RuntimeException {
public AuthenticationException(final String errorMessage, final Throwable error) {
......
package de.fitko.fitconnect.api.exceptions;
/**
* An error that occurred decrypting data or attachments
*/
public class DecryptionException extends RuntimeException {
public DecryptionException(final String errorMessage) {
......
package de.fitko.fitconnect.api.exceptions;
/**
* An error that occurred whilst encrypting data or attachments
*/
public class EncryptionException extends RuntimeException {
public EncryptionException(final String errorMessage) {
......
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