public class HibernateException extends PersistenceException
SQLExceptions
will be wrapped in some form of
JDBCException
.Constructor and Description |
---|
HibernateException(String message)
Constructs a HibernateException using the given exception message.
|
HibernateException(String message,
Throwable cause)
Constructs a HibernateException using the given message and underlying cause.
|
HibernateException(Throwable cause)
Constructs a HibernateException using the given message and underlying cause.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HibernateException(String message)
message
- The message explaining the reason for the exceptionpublic HibernateException(Throwable cause)
cause
- The underlying cause.Copyright © 2019 JBoss by Red Hat. All rights reserved.