package ${domain};

public class Error {
    private ErrorType type;
    private String message;

    public Error() {
    }

    public Error(Error error) {
        this.type = error.getType();
        this.message = error.getMessage();
    }

    public Error(ErrorType type, String message) {
        this.type = type;
        this.message = message;
    }

    public ErrorType getType() {
        return type;
    }

    public void setType(ErrorType type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
