public class UnresolvableObjectException extends HibernateException
Modifier | Constructor and Description |
---|---|
|
UnresolvableObjectException(Serializable identifier,
String entityName)
Constructs an UnresolvableObjectException using the specified information.
|
protected |
UnresolvableObjectException(String message,
Serializable identifier,
String clazz) |
Modifier and Type | Method and Description |
---|---|
String |
getEntityName() |
Serializable |
getIdentifier() |
String |
getMessage() |
static void |
throwIfNull(Object entity,
Serializable identifier,
String entityName)
Factory method for building and throwing an UnresolvableObjectException if the entity is null.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnresolvableObjectException(Serializable identifier, String entityName)
identifier
- The identifier of the entity which could not be resolvedentityName
- The name of the entity which could not be resolvedprotected UnresolvableObjectException(String message, Serializable identifier, String clazz)
public static void throwIfNull(Object entity, Serializable identifier, String entityName) throws UnresolvableObjectException
entity
- The entity to check for nullnessidentifier
- The identifier of the entityentityName
- The name of the entityUnresolvableObjectException
- Thrown if entity is nullpublic Serializable getIdentifier()
public String getEntityName()
public String getMessage()
getMessage
in class Throwable
Copyright © 2019 JBoss by Red Hat. All rights reserved.