Package org.hibernate

Class UnresolvableObjectException

    • Constructor Summary

      Constructors 
      Modifier Constructor 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)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UnresolvableObjectException

        public UnresolvableObjectException​(java.io.Serializable identifier,
                                           java.lang.String entityName)
        Constructs an UnresolvableObjectException using the specified information.
        Parameters:
        identifier - The identifier of the entity which could not be resolved
        entityName - The name of the entity which could not be resolved
      • UnresolvableObjectException

        protected UnresolvableObjectException​(java.lang.String message,
                                              java.io.Serializable identifier,
                                              java.lang.String clazz)
    • Method Detail

      • throwIfNull

        public static void throwIfNull​(java.lang.Object entity,
                                       java.io.Serializable identifier,
                                       java.lang.String entityName)
                                throws UnresolvableObjectException
        Factory method for building and throwing an UnresolvableObjectException if the entity is null.
        Parameters:
        entity - The entity to check for nullness
        identifier - The identifier of the entity
        entityName - The name of the entity
        Throws:
        UnresolvableObjectException - Thrown if entity is null
      • getIdentifier

        public java.io.Serializable getIdentifier()
      • getEntityName

        public java.lang.String getEntityName()
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable