All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.looorent.micronaut.security.SecurityException Maven / Gradle / Ivy

The newest version!
package be.looorent.micronaut.security;

/**
 * When a known security error occurs during token parsing.
 * @author Lorent Lempereur - [email protected]
 */
public class SecurityException extends RuntimeException {

    private final SecurityErrorType type;

    public SecurityException(SecurityErrorType type) {
        super(type.getReason());
        this.type = type;
    }

    public SecurityException(SecurityErrorType type, String message) {
        super(message);
        this.type = type;
    }

    public SecurityErrorType getType() {
        return type;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy