Package org.kiwiproject.jaxrs.exception
Class JaxrsConflictException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.kiwiproject.jaxrs.exception.JaxrsException
-
- org.kiwiproject.jaxrs.exception.JaxrsConflictException
-
- All Implemented Interfaces:
Serializable
public class JaxrsConflictException extends JaxrsException
Exception representing a 409 Conflict that extendsJaxrsExceptionto use Kiwi'sErrorMessage.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCODEThe status code for all instances of this exception.
-
Constructor Summary
Constructors Constructor Description JaxrsConflictException(String message)New instance with given message and 409 status code.JaxrsConflictException(String message, String fieldName)New instance with the given message and field name, and 409 status code.JaxrsConflictException(String message, String fieldName, String itemId)New instance with the given message, field name, item ID, and 409 status code.JaxrsConflictException(String message, String fieldName, String itemId, Throwable cause)New instance with the given message, field name, item ID, cause, and 409 status code.JaxrsConflictException(String message, Throwable cause)New instance with given message, cause, and 409 status code.JaxrsConflictException(Throwable cause)New instance with given cause and 409 status code.
-
Method Summary
-
Methods inherited from class org.kiwiproject.jaxrs.exception.JaxrsException
buildJaxrsException, getErrorCode, getErrors, getOtherData, getRollUpStatus, getStatusCode, setErrors, setOtherData
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
CODE
public static final int CODE
The status code for all instances of this exception.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JaxrsConflictException
public JaxrsConflictException(Throwable cause)
New instance with given cause and 409 status code.- Parameters:
cause- the cause of this exception
-
JaxrsConflictException
public JaxrsConflictException(String message)
New instance with given message and 409 status code.- Parameters:
message- the message for this exception
-
JaxrsConflictException
public JaxrsConflictException(String message, Throwable cause)
New instance with given message, cause, and 409 status code.- Parameters:
message- the message for this exceptioncause- the cause of this exception
-
JaxrsConflictException
public JaxrsConflictException(String message, String fieldName)
New instance with the given message and field name, and 409 status code.- Parameters:
message- the message for this exceptionfieldName- the field/property name that caused this error
-
JaxrsConflictException
public JaxrsConflictException(String message, String fieldName, String itemId)
New instance with the given message, field name, item ID, and 409 status code.- Parameters:
message- the message for this exceptionfieldName- the field/property name that caused this erroritemId- the unique ID of the item that caused this error
-
JaxrsConflictException
public JaxrsConflictException(String message, String fieldName, String itemId, Throwable cause)
New instance with the given message, field name, item ID, cause, and 409 status code.- Parameters:
message- the message for this exceptionfieldName- the field/property name that caused this erroritemId- the unique ID of the item that caused this errorcause- the cause of this exception
-
-