public class JPARSException extends EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
Constructor and Description |
---|
JPARSException()
Instantiates a new JPARS exception.
|
JPARSException(java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
static JPARSException |
attributeCouldNotBeFoundForEntity(java.lang.String attributeName,
java.lang.String entityType,
java.lang.String entityId,
java.lang.String persistenceUnit)
Attribute could not be found for entity.
|
static JPARSException |
attributeCouldNotBeUpdated(java.lang.String attributeName,
java.lang.String entityType,
java.lang.String entityId,
java.lang.String persistenceUnit)
Attribute could not be updated.
|
static JPARSException |
classOrClassDescriptorCouldNotBeFoundForEntity(java.lang.String entityType,
java.lang.String persistenceUnit)
Class descriptor could not be found for entity.
|
static JPARSException |
databaseMappingCouldNotBeFoundForEntityAttribute(java.lang.String attributeName,
java.lang.String entityType,
java.lang.String entityId,
java.lang.String persistenceUnit)
Database mapping could not be found for entity attribute.
|
static JPARSException |
entityIsNotIdempotent(java.lang.String entityType,
java.lang.String persistenceUnit)
Entity is not idempotent.
|
static JPARSException |
entityNotFound(java.lang.String entityType,
java.lang.String entityId,
java.lang.String persistenceUnit)
Entity not found.
|
static JPARSException |
exceptionOccurred(java.lang.Exception exception)
Exception occurred.
|
static JPARSException |
fieldsFilteringBothParametersPresent()
Both fields and excludeFields parameters are present in request.
|
javax.ws.rs.core.Response.Status |
getHttpStatusCode()
Gets the http status code.
|
java.lang.String |
getMessage()
PUBLIC:
Return the exception error message.
|
static JPARSException |
invalidConfiguration()
Invalid configuration.
|
static JPARSException |
invalidPagingRequest()
Invalid paging request.
|
static JPARSException |
invalidParameter(java.lang.String parameterName,
java.lang.String invalidValue)
Invalid paging request.
|
static JPARSException |
invalidRemoveAttributeRequest(java.lang.String attributeName,
java.lang.String entityType,
java.lang.String entityId,
java.lang.String persistenceUnit)
Invalid remove attribute request.
|
static JPARSException |
invalidServiceVersion(java.lang.String serviceVersion)
Invalid service version.
|
static JPARSException |
jndiNamePassedIsInvalid(java.lang.String jndiName)
Session bean lookup is invalid.
|
static JPARSException |
objectReferredByLinkDoesNotExist(java.lang.String entityType,
java.lang.Object entityId)
Object referred by link does not exist.
|
static JPARSException |
paginationParameterForNotPageableResource()
Pagination parameters are used in non-pageable resource.
|
static JPARSException |
persistenceContextCouldNotBeBootstrapped(java.lang.String persistenceUnit)
Persistence context could not be bootstrapped.
|
static JPARSException |
responseCouldNotBeBuiltForFindAttributeRequest(java.lang.String attributeName,
java.lang.String entityType,
java.lang.String entityId,
java.lang.String persistenceUnit)
Response could not be built for find attribute request.
|
static JPARSException |
responseCouldNotBeBuiltForNamedQueryRequest(java.lang.String query,
java.lang.String persistenceUnit)
Response could not be built for named query request.
|
static JPARSException |
selectionQueryForAttributeCouldNotBeFoundForEntity(java.lang.String attributeName,
java.lang.String entityType,
java.lang.String entityId,
java.lang.String persistenceUnit)
Selection query for attribute could not be found for entity.
|
static JPARSException |
sessionBeanCouldNotBeFound(java.lang.String jndiName)
Session bean lookup failed.
|
void |
setHttpStatusCode(javax.ws.rs.core.Response.Status httpStatusCode)
Sets the http status code.
|
cr, getErrorCode, getIndentationString, getInternalException, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
public JPARSException()
public JPARSException(java.lang.String message)
public java.lang.String getMessage()
EclipseLinkException
getMessage
in class EclipseLinkException
public javax.ws.rs.core.Response.Status getHttpStatusCode()
public void setHttpStatusCode(javax.ws.rs.core.Response.Status httpStatusCode)
httpStatusCode
- the new http status codepublic static JPARSException entityNotFound(java.lang.String entityType, java.lang.String entityId, java.lang.String persistenceUnit)
entityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException classOrClassDescriptorCouldNotBeFoundForEntity(java.lang.String entityType, java.lang.String persistenceUnit)
entityType
- the entity typepersistenceUnit
- the persistence unitpublic static JPARSException attributeCouldNotBeFoundForEntity(java.lang.String attributeName, java.lang.String entityType, java.lang.String entityId, java.lang.String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException selectionQueryForAttributeCouldNotBeFoundForEntity(java.lang.String attributeName, java.lang.String entityType, java.lang.String entityId, java.lang.String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException invalidPagingRequest()
public static JPARSException invalidParameter(java.lang.String parameterName, java.lang.String invalidValue)
public static JPARSException paginationParameterForNotPageableResource()
public static JPARSException fieldsFilteringBothParametersPresent()
public static JPARSException databaseMappingCouldNotBeFoundForEntityAttribute(java.lang.String attributeName, java.lang.String entityType, java.lang.String entityId, java.lang.String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException attributeCouldNotBeUpdated(java.lang.String attributeName, java.lang.String entityType, java.lang.String entityId, java.lang.String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException invalidServiceVersion(java.lang.String serviceVersion)
serviceVersion
- the service versionpublic static JPARSException invalidRemoveAttributeRequest(java.lang.String attributeName, java.lang.String entityType, java.lang.String entityId, java.lang.String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException responseCouldNotBeBuiltForFindAttributeRequest(java.lang.String attributeName, java.lang.String entityType, java.lang.String entityId, java.lang.String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException responseCouldNotBeBuiltForNamedQueryRequest(java.lang.String query, java.lang.String persistenceUnit)
query
- the querypersistenceUnit
- the persistence unitpublic static JPARSException objectReferredByLinkDoesNotExist(java.lang.String entityType, java.lang.Object entityId)
entityType
- the entity typeentityId
- the entity idpublic static JPARSException jndiNamePassedIsInvalid(java.lang.String jndiName)
jndiName
- the jndi namepublic static JPARSException sessionBeanCouldNotBeFound(java.lang.String jndiName)
jndiName
- the jndi namepublic static JPARSException invalidConfiguration()
public static JPARSException entityIsNotIdempotent(java.lang.String entityType, java.lang.String persistenceUnit)
entityType
- the entity typepersistenceUnit
- the persistence unitpublic static JPARSException persistenceContextCouldNotBeBootstrapped(java.lang.String persistenceUnit)
persistenceUnit
- the persistence unitpublic static JPARSException exceptionOccurred(java.lang.Exception exception)
exception
- the exception