com.xlrit.gears.base.exception.NotFoundException Maven / Gradle / Ivy
package com.xlrit.gears.base.exception;
import lombok.Getter;
@Getter
public class NotFoundException extends BaseException {
private final String what;
private final String by;
private final Object value;
public NotFoundException(String what, String by, Object value) {
super("No " + what + " found with the specified " + by + ": " + value);
this.what = what;
this.by = by;
this.value = value;
}
}