io.github.nichetoolkit.rest.error.ClassUnknownException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-toolkit-utils Show documentation
Show all versions of rest-toolkit-utils Show documentation
Rest toolkit utils project for Spring Boot
package io.github.nichetoolkit.rest.error;
import io.github.nichetoolkit.rest.RestErrorStatus;
import io.github.nichetoolkit.rest.error.natives.ClassErrorException;
import io.github.nichetoolkit.rest.error.natives.ConvertErrorException;
/**
* ClassUnknownException
* @author Cyan ([email protected])
* @version v1.0.0
*/
public class ClassUnknownException extends ClassErrorException {
public ClassUnknownException() {
super(RestErrorStatus.CLASS_TYPE_UNKNOWN);
}
public ClassUnknownException(String message) {
super(RestErrorStatus.CLASS_TYPE_UNKNOWN,message);
}
public ClassUnknownException(String resource, String message) {
super(RestErrorStatus.CLASS_TYPE_UNKNOWN, resource, message);
}
public ClassUnknownException(String resource, String field, String message) {
super(RestErrorStatus.CLASS_TYPE_UNKNOWN, resource, field, message);
}
public ClassUnknownException(String resource, String field, Object value, String message) {
super(RestErrorStatus.CLASS_TYPE_UNKNOWN, resource,field, value, message);
}
@Override
public ClassUnknownException get() {
return new ClassUnknownException();
}
}