org.cesecore.keys.token.CryptoTokenOfflineException Maven / Gradle / Ivy
/*************************************************************************
* *
* CESeCore: CE Security Core *
* *
* This software is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public *
* License as published by the Free Software Foundation; either *
* version 2.1 of the License, or any later version. *
* *
* See terms of license at gnu.org. *
* *
*************************************************************************/
package org.cesecore.keys.token;
import org.cesecore.CesecoreException;
import org.cesecore.ErrorCode;
/**
* An exception thrown when someone tries to use a CA Token that isn't available
*
* @version $Id: CryptoTokenOfflineException.java 17625 2013-09-20 07:12:06Z netmackan $
*/
public class CryptoTokenOfflineException extends CesecoreException {
private static final long serialVersionUID = -4228966531990184850L;
/**
* Creates a new instance of CryptoTokenOfflineException
without detail message.
*/
public CryptoTokenOfflineException() {
super();
super.setErrorCode(ErrorCode.CA_OFFLINE);
}
/**
* Constructs an instance of CryptoTokenOfflineException
with the specified detail message.
* @param msg the detail message.
*/
public CryptoTokenOfflineException(String msg) {
super(ErrorCode.CA_OFFLINE, msg);
}
public CryptoTokenOfflineException(Exception e) {
super(ErrorCode.CA_OFFLINE, e);
}
public CryptoTokenOfflineException(String msg, Exception e) {
super(ErrorCode.CA_OFFLINE, msg, e);
}
}