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

#414 Add domain specific exceptions

parent 59fba203
No related branches found
No related tags found
2 merge requests!2#414 Remaining changes from MR,!1planning#414 Methoden Signaturen (Zwischenstand)
Showing
with 136 additions and 51 deletions
package de.fitko.fitconnect.api.exceptions;
public class AttachmentCreationException extends RuntimeException {
public AttachmentCreationException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions;
public class AttachmentUploadException extends RuntimeException {
public AttachmentUploadException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions.internal;
package de.fitko.fitconnect.api.exceptions;
/**
* An error that occurred during the OAuth authentication
*/
public class AuthenticationException extends Exception {
public class AuthenticationException extends RuntimeException {
public AuthenticationException(String errorMessage, Throwable error) {
public AuthenticationException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions;
public class ClientNotAuthenticatedException extends RuntimeException {
public ClientNotAuthenticatedException(final String errorMessage) {
super(errorMessage);
}
public ClientNotAuthenticatedException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions.internal;
package de.fitko.fitconnect.api.exceptions;
/**
* An error that occurred decrypting data or attachments
*/
public class DecryptionException extends Exception {
public class DecryptionException extends RuntimeException {
public DecryptionException(String errorMessage) {
public DecryptionException(final String errorMessage) {
super(errorMessage);
}
public DecryptionException(String errorMessage, Throwable error) {
public DecryptionException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions.internal;
package de.fitko.fitconnect.api.exceptions;
/**
* An error that occurred whilst encrypting data or attachments
*/
public class EncryptionException extends Exception {
public class EncryptionException extends RuntimeException {
public EncryptionException(String errorMessage) {
public EncryptionException(final String errorMessage) {
super(errorMessage);
}
public EncryptionException(String errorMessage, Throwable error) {
public EncryptionException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
......
package de.fitko.fitconnect.api.exceptions.internal;
package de.fitko.fitconnect.api.exceptions;
public class InitializationException extends RuntimeException {
public InitializationException(String errorMessage) {
public InitializationException(final String errorMessage) {
super(errorMessage);
}
public InitializationException(String errorMessage, Throwable error) {
public InitializationException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions;
public class InvalidPublicKeyException extends RuntimeException {
public InvalidPublicKeyException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions;
public class KeyNotRetrievedException extends RuntimeException {
public KeyNotRetrievedException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions;
public class MetadataNotCreatedException extends RuntimeException {
public MetadataNotCreatedException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions;
public class SubmissionNotCreatedException extends RuntimeException {
public SubmissionNotCreatedException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions;
public class SubmissionNotSentException extends RuntimeException {
public SubmissionNotSentException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions;
public class ValidationException extends RuntimeException {
public ValidationException(final String errorMessage) {
super(errorMessage);
}
public ValidationException(final String errorMessage, final Throwable error) {
super(errorMessage, error);
}
}
package de.fitko.fitconnect.api.exceptions.client;
import de.fitko.fitconnect.api.domain.model.metadata.attachment.Attachment;
import de.fitko.fitconnect.api.domain.model.submission.SubmissionRequest;
/**
* Error during upload of the {@link SubmissionRequest}s {@link Attachment}s
*/
public class AttachmentUploadError extends RuntimeException {
public AttachmentUploadError(String errorMessage) {
super(errorMessage);
}
}
package de.fitko.fitconnect.api.exceptions.client;
/**
* Error during the authentication process of the client
*/
public class ClientNotAuthenticated extends RuntimeException {
public ClientNotAuthenticated(String errorMessage) {
super(errorMessage);
}
}
package de.fitko.fitconnect.api.exceptions.client;
import de.fitko.fitconnect.api.domain.model.submission.SubmissionRequest;
/**
* Error during the creation process of a {@link SubmissionRequest}
*/
public class SubmissionCreationError extends RuntimeException {
public SubmissionCreationError(String errorMessage) {
super(errorMessage);
}
}
package de.fitko.fitconnect.api.exceptions.client;
import de.fitko.fitconnect.api.domain.model.submission.SubmissionRequest;
/**
* Error during the creation process of a {@link SubmissionRequest}
*/
public class SubmissionSendError extends RuntimeException {
public SubmissionSendError(String errorMessage) {
super(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