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

net.n2oapp.framework.api.exception.N2oUserException Maven / Gradle / Ivy

There is a newer version: 7.28.1
Show newest version
package net.n2oapp.framework.api.exception;

import lombok.Getter;

import java.util.List;

/**
 * Бизнес исключение
 */
public class N2oUserException extends N2oException {
    @Getter
    private List messages;

    public N2oUserException(String userMessage) {
        super();
        setUserMessage(userMessage);
        setHttpStatus(400);
    }

    public N2oUserException(String userMessage, String alertKey, List messages) {
        super();
        setUserMessage(userMessage);
        setHttpStatus(400);
        this.messages = messages;
    }

    public N2oUserException(String userMessage, String techMessage) {
        super(techMessage);
        setUserMessage(userMessage);
        setHttpStatus(400);
    }

    public N2oUserException(String userMessage, Throwable e) {
        super(e.getMessage(), e);
        setUserMessage(userMessage);
        setHttpStatus(400);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy