io.github.nichetoolkit.rest.error.ClassUnsupportedException 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;
/**
* ClassUnsupportedException
* @author Cyan ([email protected])
* @version v1.0.0
*/
public class ClassUnsupportedException extends ClassErrorException {
public ClassUnsupportedException() {
super(RestErrorStatus.CLASS_TYPE_UNSUPPORTED);
}
public ClassUnsupportedException(String message) {
super(RestErrorStatus.CLASS_TYPE_UNSUPPORTED,message);
}
public ClassUnsupportedException(String resource, String message) {
super(RestErrorStatus.CLASS_TYPE_UNSUPPORTED, resource, message);
}
public ClassUnsupportedException(String resource, String field, String message) {
super(RestErrorStatus.CLASS_TYPE_UNSUPPORTED, resource, field, message);
}
public ClassUnsupportedException(String resource, String field, Object value, String message) {
super(RestErrorStatus.CLASS_TYPE_UNSUPPORTED, resource,field, value, message);
}
@Override
public ClassUnsupportedException get() {
return new ClassUnsupportedException();
}
}