public class HrormException extends RuntimeException
RuntimeException that often wraps SQLException.
Hrorm does not declare checked exceptions in any methods or interfaces that are intended to be used by clients. Nevertheless, it may be a good idea to catch this exception at strategic points in your application.
| Constructor and Description |
|---|
HrormException(SQLException sqlException) |
HrormException(SQLException sqlException,
String sql) |
HrormException(String message) |
HrormException(String message,
String sql) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
Optional<String> |
getSql()
The SQL that was executed that caused the exception.
|
Optional<SQLException> |
getSqlException() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HrormException(String message)
public HrormException(SQLException sqlException)
public HrormException(SQLException sqlException, String sql)
public Optional<SQLException> getSqlException()
public Optional<String> getSql()
public String getMessage()
getMessage in class ThrowableCopyright © 2019. All rights reserved.