io.getlime.security.powerauth.rest.api.spring.exception.PowerAuthSecureVaultException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powerauth-restful-security-spring-annotation Show documentation
Show all versions of powerauth-restful-security-spring-annotation Show documentation
PowerAuth RESTful API Security Annotations for Spring
/*
* PowerAuth integration libraries for RESTful API applications, examples and
* related software components
*
* Copyright (C) 2018 Wultra s.r.o.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package io.getlime.security.powerauth.rest.api.spring.exception;
/**
* Exception related to processes during a new secure vault unlocking.
*
* @author Petr Dvorak, [email protected]
*/
public class PowerAuthSecureVaultException extends Exception {
private static final long serialVersionUID = -6996857964853505534L;
private static final String DEFAULT_CODE = "ERR_SECURE_VAULT";
private static final String DEFAULT_ERROR = "POWER_AUTH_SECURE_VAULT_INVALID";
/**
* Default constructor
*/
public PowerAuthSecureVaultException() {
super(DEFAULT_ERROR);
}
/**
* Constructor with a custom error message
* @param message Error message
*/
public PowerAuthSecureVaultException(String message) {
super(message);
}
/**
* Constructor with a cause.
* @param cause Error cause.
*/
public PowerAuthSecureVaultException(Throwable cause) {
super(cause);
}
/**
* Get the default error code, used for example in REST response.
* @return Default error code.
*/
public String getDefaultCode() {
return DEFAULT_CODE;
}
/**
* Get default error message, used for example in the REST response.
* @return Default error message.
*/
public String getDefaultError() {
return DEFAULT_ERROR;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy