blob: c95b6ee774e0ce5bdf7c1ef6e50f38d7c16ae783 [file] [log] [blame]
/*
*/
package org.taverna.server.master.exceptions;
/**
* An exception that is thrown to indicate that a credential-descriptor or
* trust-descriptor supplied as part of a credential or trust management
* operation is invalid.
*
* @author Donal Fellows
*
*/
@SuppressWarnings("serial")
public class InvalidCredentialException extends Exception {
private static final String MSG = "that credential is invalid";
public InvalidCredentialException() {
super(MSG);
}
public InvalidCredentialException(String reason) {
super(MSG + ": " + reason);
}
public InvalidCredentialException(String reason, Throwable cause) {
this(reason);
initCause(cause);
}
public InvalidCredentialException(Throwable cause) {
this(cause.getMessage(), cause);
}
}