Class JaxrsInternalServerErrorException

All Implemented Interfaces:
Serializable

public class JaxrsInternalServerErrorException extends JaxrsException
Exception representing a 500 Internal Server Error. It extends JaxrsException to use Kiwi's ErrorMessage.
See Also:
  • Field Details

    • CODE

      public static final int CODE
      The status code for all instances of this exception.
      See Also:
  • Constructor Details

    • JaxrsInternalServerErrorException

      public JaxrsInternalServerErrorException(Throwable cause)
      New instance with given cause and 500 status code.
      Parameters:
      cause - the cause of this exception
    • JaxrsInternalServerErrorException

      public JaxrsInternalServerErrorException(String message)
      New instance with given message and 500 status code.
      Parameters:
      message - the message for this exception
    • JaxrsInternalServerErrorException

      public JaxrsInternalServerErrorException(String message, Throwable cause)
      New instance with given message, cause, and 500 status code.
      Parameters:
      message - the message for this exception
      cause - the cause of this exception
    • JaxrsInternalServerErrorException

      public JaxrsInternalServerErrorException(String message, String fieldName)
      New instance with the given message and field name, and 500 status code.
      Parameters:
      message - the message for this exception
      fieldName - the field/property name that caused this error
    • JaxrsInternalServerErrorException

      public JaxrsInternalServerErrorException(String message, String fieldName, String itemId)
      New instance with the given message, field name, item ID, and 500 status code.
      Parameters:
      message - the message for this exception
      fieldName - the field/property name that caused this error
      itemId - the unique ID of the item that caused this error
    • JaxrsInternalServerErrorException

      public JaxrsInternalServerErrorException(String message, String fieldName, String itemId, Throwable cause)
      New instance with the given message, field name, item ID, cause, and 500 status code.
      Parameters:
      message - the message for this exception
      fieldName - the field/property name that caused this error
      itemId - the unique ID of the item that caused this error
      cause - the cause of this exception