public class DBOpException extends java.lang.IllegalStateException implements ExceptionWithContext
Constructor and Description |
---|
DBOpException(java.lang.String message) |
DBOpException(java.lang.String message,
java.lang.Throwable cause) |
DBOpException(java.lang.String message,
java.lang.Throwable cause,
ErrorContext context) |
Modifier and Type | Method and Description |
---|---|
static DBOpException |
forCause(java.lang.String sql,
java.sql.SQLException e) |
java.util.Optional<ErrorContext> |
getContext() |
public DBOpException(java.lang.String message)
public DBOpException(java.lang.String message, java.lang.Throwable cause)
public DBOpException(java.lang.String message, java.lang.Throwable cause, ErrorContext context)
public static DBOpException forCause(java.lang.String sql, java.sql.SQLException e)
public java.util.Optional<ErrorContext> getContext()
getContext
in interface ExceptionWithContext