public class HasReferenceException
extends de.xima.cmn.dao.exceptions.DatabaseAccessException
The operation is usually a delete operation. For example, a file cannot be deleted in case that file is still used by a workflow action.
Constructor and Description |
---|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
Collection<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> entities)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
de.xima.cmn.dao.interfaces.IEntity<Long>... entities)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
String message)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
String messageKey,
Serializable... params)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
String message,
Throwable cause)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
Throwable cause)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
Throwable cause,
Collection<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> entities)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
Throwable cause,
de.xima.cmn.dao.interfaces.IEntity<Long>... entities)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
Throwable cause,
String messageKey)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
Throwable cause,
String message,
Collection<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> entities)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
Throwable cause,
String message,
de.xima.cmn.dao.interfaces.IEntity<Long>... entities)
Creates a new reference exception for when some entities still reference a certain entity.
|
HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity,
Throwable cause,
String messageKey,
Serializable... params)
Creates a new reference exception for when some entities still reference a certain entity.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntites(Collection<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> entities)
Adds the given entities to the list of referenced entities.
|
void |
addEntites(de.xima.cmn.dao.interfaces.IEntity<Long>... entities)
Adds the given entities to the list of referenced entities.
|
String |
getDefaultErrorCode() |
String |
getDefaultMessageKey() |
de.xima.cmn.dao.interfaces.IEntity<Long> |
getEntity() |
String |
getLocalizedMessage(Locale locale) |
Map<Class<? extends de.xima.cmn.dao.interfaces.IEntity<Long>>,Set<de.xima.cmn.dao.interfaces.IEntity<Long>>> |
getRefEntities() |
getErrorCode, getExceptionData, getMessageKey, getMessageParams
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity)
entity
- The entity that is still referenced by other entities.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, Throwable cause)
entity
- The entity that is still referenced by other entities.cause
- An exception that is the cause of this exception.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, String message)
entity
- The entity that is still referenced by other entities.message
- A localized error message.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, Collection<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> entities)
entity
- The entity that is still referenced by other entities.entities
- A list of entities that still reference the given entity.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, de.xima.cmn.dao.interfaces.IEntity<Long>... entities)
entity
- The entity that is still referenced by other entities.entities
- A list of entities that still reference the given entity.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, String message, Throwable cause)
entity
- The entity that is still referenced by other entities.message
- A localized error message.cause
- An exception that is the cause of this exception.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, Throwable cause, String messageKey)
entity
- The entity that is still referenced by other entities.cause
- An exception that is the cause of this exception.messageKey
- I18N key for constructing a localized error messagepublic HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, Throwable cause, de.xima.cmn.dao.interfaces.IEntity<Long>... entities)
entity
- The entity that is still referenced by other entities.cause
- An exception that is the cause of this exception.entities
- A list of entities that still reference the given entity.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, Throwable cause, Collection<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> entities)
entity
- The entity that is still referenced by other entities.cause
- An exception that is the cause of this exception.entities
- A list of entities that still reference the given entity.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, String messageKey, Serializable... params)
entity
- The entity that is still referenced by other entities.messageKey
- I18N key for constructing a localized error messageparams
- Parameters for constructing a localized error message.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, Throwable cause, String message, de.xima.cmn.dao.interfaces.IEntity<Long>... entities)
entity
- The entity that is still referenced by other entities.cause
- An exception that is the cause of this exception.message
- A localized error message.entities
- A list of entities that still reference the given entity.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, Throwable cause, String message, Collection<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> entities)
entity
- The entity that is still referenced by other entities.cause
- An exception that is the cause of this exception.message
- A localized error message.entities
- A list of entities that still reference the given entity.public HasReferenceException(de.xima.cmn.dao.interfaces.IEntity<Long> entity, Throwable cause, String messageKey, Serializable... params)
entity
- The entity that is still referenced by other entities.cause
- An exception that is the cause of this exception.messageKey
- I18N key for constructing a localized error messageparams
- Parameters for constructing a localized error message.public Map<Class<? extends de.xima.cmn.dao.interfaces.IEntity<Long>>,Set<de.xima.cmn.dao.interfaces.IEntity<Long>>> getRefEntities()
getEntity()
.public de.xima.cmn.dao.interfaces.IEntity<Long> getEntity()
public String getDefaultMessageKey()
public String getDefaultErrorCode()
public String getLocalizedMessage(Locale locale)
getLocalizedMessage
in interface de.xima.cmn.dao.exceptions.interfaces.IDaoException
getLocalizedMessage
in class de.xima.cmn.dao.exceptions.AbstractDaoRuntimeException
public void addEntites(de.xima.cmn.dao.interfaces.IEntity<Long>... entities)
entities
- Entities to add.public void addEntites(Collection<? extends de.xima.cmn.dao.interfaces.IEntity<Long>> entities)
entities
- Entities to add.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.