Class JPARSException

All Implemented Interfaces:
Serializable

public class JPARSException extends EclipseLinkException
See Also:
  • Constructor Details

    • JPARSException

      public JPARSException()
      Instantiates a new JPARS exception.
    • JPARSException

      public JPARSException(String message)
  • Method Details

    • getMessage

      public String getMessage()
      Description copied from class: EclipseLinkException
      PUBLIC: Return the exception error message. EclipseLink error messages are multi-line so that detail descriptions of the exception are given.
      Overrides:
      getMessage in class EclipseLinkException
    • getHttpStatusCode

      public jakarta.ws.rs.core.Response.Status getHttpStatusCode()
      Gets the http status code.
      Returns:
      the http status code
    • setHttpStatusCode

      public void setHttpStatusCode(jakarta.ws.rs.core.Response.Status httpStatusCode)
      Sets the http status code.
      Parameters:
      httpStatusCode - the new http status code
    • entityNotFound

      public static JPARSException entityNotFound(String entityType, String entityId, String persistenceUnit)
      Entity not found.
      Parameters:
      entityType - the entity type
      entityId - the entity id
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • classOrClassDescriptorCouldNotBeFoundForEntity

      public static JPARSException classOrClassDescriptorCouldNotBeFoundForEntity(String entityType, String persistenceUnit)
      Class descriptor could not be found for entity.
      Parameters:
      entityType - the entity type
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • attributeCouldNotBeFoundForEntity

      public static JPARSException attributeCouldNotBeFoundForEntity(String attributeName, String entityType, String entityId, String persistenceUnit)
      Attribute could not be found for entity.
      Parameters:
      attributeName - the attribute name
      entityType - the entity type
      entityId - the entity id
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • selectionQueryForAttributeCouldNotBeFoundForEntity

      public static JPARSException selectionQueryForAttributeCouldNotBeFoundForEntity(String attributeName, String entityType, String entityId, String persistenceUnit)
      Selection query for attribute could not be found for entity.
      Parameters:
      attributeName - the attribute name
      entityType - the entity type
      entityId - the entity id
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • invalidPagingRequest

      public static JPARSException invalidPagingRequest()
      Invalid paging request.
      Returns:
      the JPARS exception
    • invalidParameter

      public static JPARSException invalidParameter(String parameterName, String invalidValue)
      Invalid paging request.
      Returns:
      the JPARS exception
    • paginationParameterForNotPageableResource

      public static JPARSException paginationParameterForNotPageableResource()
      Pagination parameters are used in non-pageable resource.
      Returns:
      the JPARS exception
    • fieldsFilteringBothParametersPresent

      public static JPARSException fieldsFilteringBothParametersPresent()
      Both fields and excludeFields parameters are present in request.
      Returns:
      the JPARS exception
    • databaseMappingCouldNotBeFoundForEntityAttribute

      public static JPARSException databaseMappingCouldNotBeFoundForEntityAttribute(String attributeName, String entityType, String entityId, String persistenceUnit)
      Database mapping could not be found for entity attribute.
      Parameters:
      attributeName - the attribute name
      entityType - the entity type
      entityId - the entity id
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • attributeCouldNotBeUpdated

      public static JPARSException attributeCouldNotBeUpdated(String attributeName, String entityType, String entityId, String persistenceUnit)
      Attribute could not be updated.
      Parameters:
      attributeName - the attribute name
      entityType - the entity type
      entityId - the entity id
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • invalidServiceVersion

      public static JPARSException invalidServiceVersion(String serviceVersion)
      Invalid service version.
      Parameters:
      serviceVersion - the service version
      Returns:
      the JPARS exception
    • invalidRemoveAttributeRequest

      public static JPARSException invalidRemoveAttributeRequest(String attributeName, String entityType, String entityId, String persistenceUnit)
      Invalid remove attribute request.
      Parameters:
      attributeName - the attribute name
      entityType - the entity type
      entityId - the entity id
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • responseCouldNotBeBuiltForFindAttributeRequest

      public static JPARSException responseCouldNotBeBuiltForFindAttributeRequest(String attributeName, String entityType, String entityId, String persistenceUnit)
      Response could not be built for find attribute request.
      Parameters:
      attributeName - the attribute name
      entityType - the entity type
      entityId - the entity id
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • responseCouldNotBeBuiltForNamedQueryRequest

      public static JPARSException responseCouldNotBeBuiltForNamedQueryRequest(String query, String persistenceUnit)
      Response could not be built for named query request.
      Parameters:
      query - the query
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • objectReferredByLinkDoesNotExist

      public static JPARSException objectReferredByLinkDoesNotExist(String entityType, Object entityId)
      Object referred by link does not exist.
      Parameters:
      entityType - the entity type
      entityId - the entity id
      Returns:
      the JPARS exception
    • jndiNamePassedIsInvalid

      public static JPARSException jndiNamePassedIsInvalid(String jndiName)
      Session bean lookup is invalid.
      Parameters:
      jndiName - the jndi name
      Returns:
      the JPARS exception
    • sessionBeanCouldNotBeFound

      public static JPARSException sessionBeanCouldNotBeFound(String jndiName)
      Session bean lookup failed.
      Parameters:
      jndiName - the jndi name
      Returns:
      the JPARS exception
    • invalidConfiguration

      public static JPARSException invalidConfiguration()
      Invalid configuration.
      Returns:
      the JPARS exception
    • entityIsNotIdempotent

      public static JPARSException entityIsNotIdempotent(String entityType, String persistenceUnit)
      Entity is not idempotent.
      Parameters:
      entityType - the entity type
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • persistenceContextCouldNotBeBootstrapped

      public static JPARSException persistenceContextCouldNotBeBootstrapped(String persistenceUnit)
      Persistence context could not be bootstrapped.
      Parameters:
      persistenceUnit - the persistence unit
      Returns:
      the JPARS exception
    • exceptionOccurred

      public static JPARSException exceptionOccurred(Exception exception)
      Exception occurred.
      Parameters:
      exception - the exception
      Returns:
      the JPARS exception