com.github.saphyra.exceptionhandling.domain.ErrorMessage Maven / Gradle / Ivy
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