Class ConflictException

All Implemented Interfaces:
Serializable

public final class ConflictException extends ServiceException
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 Details

    • CODE

      public static final int CODE
      The code that uniquely identifies this exception (inspired from HTTP codes).
      See Also:
  • Constructor Details

    • ConflictException

      public ConflictException(String message)
      Constructor.
      Parameters:
      message - the detailed message
    • ConflictException

      public ConflictException(String message, Throwable cause)
      Constructor.
      Parameters:
      message - the detailed message
      cause - the exception that caused this one
    • ConflictException

      public ConflictException(Throwable cause)
      Constructor.
      Parameters:
      cause - the exception that caused this one