Class ConflictException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.activeviam.tech.core.api.exceptions.ActiveViamRuntimeException
com.activeviam.tech.core.api.exceptions.service.ServiceException
com.activeviam.tech.core.api.exceptions.service.ConflictException
- All Implemented Interfaces:
Serializable
Class exception for a call that conflicts with the current state of the resource.
The request could not be completed due to a conflict with the current state of the resource. This code is only allowed in situations where it is expected that the user might be able to resolve the conflict and resubmit the request. The response body SHOULD include enough information for the user to recognize the source of the conflict. Ideally, the response entity would include enough information for the user or user agent to fix the problem; however, that might not be possible and is not required.
This reproduces HTTP code 409.
- Author:
- ActiveViam
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The code that uniquely identifies this exception (inspired from HTTP codes). -
Constructor Summary
ConstructorsConstructorDescriptionConflictException
(String message) Constructor.ConflictException
(String message, Throwable cause) Constructor.ConflictException
(Throwable cause) Constructor. -
Method Summary
Methods inherited from class com.activeviam.tech.core.api.exceptions.service.ServiceException
create, getCode, getLoggingLevel, getMessage, getStatusCode, isClientException, isClientException, wrap
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CODE
public static final int CODEThe code that uniquely identifies this exception (inspired from HTTP codes).- See Also:
-
-
Constructor Details
-
ConflictException
Constructor.- Parameters:
message
- the detailed message
-
ConflictException
Constructor.- Parameters:
message
- the detailed messagecause
- the exception that caused this one
-
ConflictException
Constructor.- Parameters:
cause
- the exception that caused this one
-