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