package de.dfki.nlp.domain.exceptions;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseException extends Exception {
String errorCode;
public BaseException(String message, String errorCode) {
super(message);
this.errorCode = errorCode;
}
public BaseException(Errors errors) {
this(errors.message, errors.errorCode);
}
}