public class JPARSException extends EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
Constructor and Description |
---|
JPARSException()
Instantiates a new JPARS exception.
|
JPARSException(String message) |
Modifier and Type | Method and Description |
---|---|
static JPARSException |
attributeCouldNotBeFoundForEntity(String attributeName,
String entityType,
String entityId,
String persistenceUnit)
Attribute could not be found for entity.
|
static JPARSException |
attributeCouldNotBeUpdated(String attributeName,
String entityType,
String entityId,
String persistenceUnit)
Attribute could not be updated.
|
static JPARSException |
classOrClassDescriptorCouldNotBeFoundForEntity(String entityType,
String persistenceUnit)
Class descriptor could not be found for entity.
|
static JPARSException |
databaseMappingCouldNotBeFoundForEntityAttribute(String attributeName,
String entityType,
String entityId,
String persistenceUnit)
Database mapping could not be found for entity attribute.
|
static JPARSException |
entityIsNotIdempotent(String entityType,
String persistenceUnit)
Entity is not idempotent.
|
static JPARSException |
entityNotFound(String entityType,
String entityId,
String persistenceUnit)
Entity not found.
|
static JPARSException |
exceptionOccurred(Exception exception)
Exception occurred.
|
static JPARSException |
fieldsFilteringBothParametersPresent()
Both fields and excludeFields parameters are present in request.
|
jakarta.ws.rs.core.Response.Status |
getHttpStatusCode()
Gets the http status code.
|
String |
getMessage()
PUBLIC:
Return the exception error message.
|
static JPARSException |
invalidConfiguration()
Invalid configuration.
|
static JPARSException |
invalidPagingRequest()
Invalid paging request.
|
static JPARSException |
invalidParameter(String parameterName,
String invalidValue)
Invalid paging request.
|
static JPARSException |
invalidRemoveAttributeRequest(String attributeName,
String entityType,
String entityId,
String persistenceUnit)
Invalid remove attribute request.
|
static JPARSException |
invalidServiceVersion(String serviceVersion)
Invalid service version.
|
static JPARSException |
jndiNamePassedIsInvalid(String jndiName)
Session bean lookup is invalid.
|
static JPARSException |
objectReferredByLinkDoesNotExist(String entityType,
Object entityId)
Object referred by link does not exist.
|
static JPARSException |
paginationParameterForNotPageableResource()
Pagination parameters are used in non-pageable resource.
|
static JPARSException |
persistenceContextCouldNotBeBootstrapped(String persistenceUnit)
Persistence context could not be bootstrapped.
|
static JPARSException |
responseCouldNotBeBuiltForFindAttributeRequest(String attributeName,
String entityType,
String entityId,
String persistenceUnit)
Response could not be built for find attribute request.
|
static JPARSException |
responseCouldNotBeBuiltForNamedQueryRequest(String query,
String persistenceUnit)
Response could not be built for named query request.
|
static JPARSException |
selectionQueryForAttributeCouldNotBeFoundForEntity(String attributeName,
String entityType,
String entityId,
String persistenceUnit)
Selection query for attribute could not be found for entity.
|
static JPARSException |
sessionBeanCouldNotBeFound(String jndiName)
Session bean lookup failed.
|
void |
setHttpStatusCode(jakarta.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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public JPARSException()
public JPARSException(String message)
public String getMessage()
EclipseLinkException
getMessage
in class EclipseLinkException
public jakarta.ws.rs.core.Response.Status getHttpStatusCode()
public void setHttpStatusCode(jakarta.ws.rs.core.Response.Status httpStatusCode)
httpStatusCode
- the new http status codepublic static JPARSException entityNotFound(String entityType, String entityId, String persistenceUnit)
entityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException classOrClassDescriptorCouldNotBeFoundForEntity(String entityType, String persistenceUnit)
entityType
- the entity typepersistenceUnit
- the persistence unitpublic static JPARSException attributeCouldNotBeFoundForEntity(String attributeName, String entityType, String entityId, String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException selectionQueryForAttributeCouldNotBeFoundForEntity(String attributeName, String entityType, String entityId, String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException invalidPagingRequest()
public static JPARSException invalidParameter(String parameterName, String invalidValue)
public static JPARSException paginationParameterForNotPageableResource()
public static JPARSException fieldsFilteringBothParametersPresent()
public static JPARSException databaseMappingCouldNotBeFoundForEntityAttribute(String attributeName, String entityType, String entityId, String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException attributeCouldNotBeUpdated(String attributeName, String entityType, String entityId, String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException invalidServiceVersion(String serviceVersion)
serviceVersion
- the service versionpublic static JPARSException invalidRemoveAttributeRequest(String attributeName, String entityType, String entityId, String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException responseCouldNotBeBuiltForFindAttributeRequest(String attributeName, String entityType, String entityId, String persistenceUnit)
attributeName
- the attribute nameentityType
- the entity typeentityId
- the entity idpersistenceUnit
- the persistence unitpublic static JPARSException responseCouldNotBeBuiltForNamedQueryRequest(String query, String persistenceUnit)
query
- the querypersistenceUnit
- the persistence unitpublic static JPARSException objectReferredByLinkDoesNotExist(String entityType, Object entityId)
entityType
- the entity typeentityId
- the entity idpublic static JPARSException jndiNamePassedIsInvalid(String jndiName)
jndiName
- the jndi namepublic static JPARSException sessionBeanCouldNotBeFound(String jndiName)
jndiName
- the jndi namepublic static JPARSException invalidConfiguration()
public static JPARSException entityIsNotIdempotent(String entityType, String persistenceUnit)
entityType
- the entity typepersistenceUnit
- the persistence unitpublic static JPARSException persistenceContextCouldNotBeBootstrapped(String persistenceUnit)
persistenceUnit
- the persistence unitpublic static JPARSException exceptionOccurred(Exception exception)
exception
- the exceptionCopyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.