public class NonUniqueObjectException extends HibernateException
| Constructor and Description |
|---|
NonUniqueObjectException(Object entityId,
String entityName)
Constructs a NonUniqueObjectException using the given information, using a standard message.
|
NonUniqueObjectException(String message,
Object entityId,
String entityName)
Constructs a NonUniqueObjectException using the given information.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEntityName() |
Object |
getIdentifier() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NonUniqueObjectException(String message, Object entityId, String entityName)
message - A message explaining the exception conditionentityId - The identifier of the entityentityName - The name of the entitypublic String getEntityName()
public Object getIdentifier()
public String getMessage()
getMessage in class ThrowableCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.