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

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

There is a newer version: 2.0.0
Show newest version
package be.looorent.micronaut.security;

/**
 * An a Security error occurs.
 * @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