public class UnresolvableObjectException extends HibernateException
Modifier | Constructor and Description |
---|---|
|
UnresolvableObjectException(java.io.Serializable identifier,
java.lang.String entityName)
Constructs an UnresolvableObjectException using the specified information.
|
protected |
UnresolvableObjectException(java.lang.String message,
java.io.Serializable identifier,
java.lang.String clazz) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEntityName() |
java.io.Serializable |
getIdentifier() |
java.lang.String |
getMessage() |
static void |
throwIfNull(java.lang.Object entity,
java.io.Serializable identifier,
java.lang.String entityName)
Factory method for building and throwing an UnresolvableObjectException if the entity is null.
|
public UnresolvableObjectException(java.io.Serializable identifier, java.lang.String entityName)
identifier
- The identifier of the entity which could not be resolvedentityName
- The name of the entity which could not be resolvedprotected UnresolvableObjectException(java.lang.String message, java.io.Serializable identifier, java.lang.String clazz)
public static void throwIfNull(java.lang.Object entity, java.io.Serializable identifier, java.lang.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 java.io.Serializable getIdentifier()
public java.lang.String getEntityName()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.