BackupSpaceException.java
package org.microspace.exception;
import java.io.Serializable;
import org.microspace.failover.FailoverState;
/**
* A BackupSpace exception is thrown if the operation is not
* allowed in {@link FailoverState#BACKUP BACKUP} mode.
*
* @author Gaspar Sinai - {@literal gaspar.sinai@microspace.org}
* @version 2016-06-26
*/
public class BackupSpaceException extends RuntimeException implements Serializable {
private static final long serialVersionUID = 8095724149729444300L;
/**
* Constructs a new exception with null as its detail message.
*/
public BackupSpaceException () {
}
/**
* Constructs a new exception with the specified detail message.
* @param message the detail message
*/
public BackupSpaceException (String message) {
super (message);
}
/**
* Constructs a new exception with the specified detail message and cause.
* @param message the detail message
* @param cause the cause
*/
public BackupSpaceException (String message, Throwable cause) {
super(message, cause);
}
/**
* Constructs a new exception with the specified cause and a detail message of cause.
* @param cause the cause
*/
public BackupSpaceException (Throwable cause) {
super (cause);
}
}