Package org.hibernate

Class PersistentObjectException

  • All Implemented Interfaces:
    java.io.Serializable

    public class PersistentObjectException
    extends HibernateException
    Thrown when the user passes a persistent instance to a Session method that expects a transient instance.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PersistentObjectException​(java.lang.String message)
      Constructs a PersistentObjectException using the given message.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

      • PersistentObjectException

        public PersistentObjectException​(java.lang.String message)
        Constructs a PersistentObjectException using the given message.
        Parameters:
        message - A message explaining the exception condition