public class HrormException extends RuntimeException
RuntimeException that 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) | 
| Modifier and Type | Method and Description | 
|---|---|
| Optional<String> | getSql()The SQL that was executed that caused the exception. | 
| Optional<SQLException> | getSqlException() | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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()
Copyright © 2018. All rights reserved.