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

com.github.saphyra.exceptionhandling.domain.ErrorMessage Maven / Gradle / Ivy

There is a newer version: 1.3.4
Show newest version
package com.github.saphyra.exceptionhandling.domain;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class ErrorMessage {
    private final String errorCode;

    private final Map params;

    public ErrorMessage(String errorCode) {
        this(errorCode, new HashMap<>());
    }

    public ErrorMessage(String errorCode, Map params) {
        this.errorCode = errorCode;
        this.params = params;
    }

    @Override
    public String toString() {
        return errorCode + " - Params: " + params.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy