io.github.nichetoolkit.rest.error.ClassUnrenewException 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
The newest version!
package io.github.nichetoolkit.rest.error;
import io.github.nichetoolkit.rest.RestErrorStatus;
import io.github.nichetoolkit.rest.error.natives.ClassErrorException;
/**
* ClassUnrenewException
* The class unrenew exception class.
* @author Cyan ([email protected])
* @see io.github.nichetoolkit.rest.error.natives.ClassErrorException
* @since Jdk1.8
*/
public class ClassUnrenewException extends ClassErrorException {
/**
* ClassUnrenewException
* Instantiates a new class unrenew exception.
*/
public ClassUnrenewException() {
super(RestErrorStatus.CLASS_TYPE_UNRENEW);
}
/**
* ClassUnrenewException
* Instantiates a new class unrenew exception.
* @param message {@link java.lang.String} The message parameter is String
type.
* @see java.lang.String
*/
public ClassUnrenewException(String message) {
super(RestErrorStatus.CLASS_TYPE_UNRENEW,message);
}
/**
* ClassUnrenewException
* Instantiates a new class unrenew exception.
* @param resource {@link java.lang.String} The resource parameter is String
type.
* @param message {@link java.lang.String} The message parameter is String
type.
* @see java.lang.String
*/
public ClassUnrenewException(String resource, String message) {
super(RestErrorStatus.CLASS_TYPE_UNRENEW, resource, message);
}
/**
* ClassUnrenewException
* Instantiates a new class unrenew exception.
* @param resource {@link java.lang.String} The resource parameter is String
type.
* @param field {@link java.lang.String} The field parameter is String
type.
* @param message {@link java.lang.String} The message parameter is String
type.
* @see java.lang.String
*/
public ClassUnrenewException(String resource, String field, String message) {
super(RestErrorStatus.CLASS_TYPE_UNRENEW, resource, field, message);
}
/**
* ClassUnrenewException
* Instantiates a new class unrenew exception.
* @param resource {@link java.lang.String} The resource parameter is String
type.
* @param field {@link java.lang.String} The field parameter is String
type.
* @param value {@link java.lang.Object} The value parameter is Object
type.
* @param message {@link java.lang.String} The message parameter is String
type.
* @see java.lang.String
* @see java.lang.Object
*/
public ClassUnrenewException(String resource, String field, Object value, String message) {
super(RestErrorStatus.CLASS_TYPE_UNRENEW, resource,field, value, message);
}
@Override
public ClassUnrenewException get() {
return new ClassUnrenewException();
}
}