public class ErrorUtils extends Object
| Constructor and Description |
|---|
ErrorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SQLWarning |
chainWarnings(SQLWarning base,
RequestExecutorHandlers.Result result) |
static SQLWarning |
chainWarnings(SQLWarning base,
SQLWarning add)
Creates a single chain of warnings.
|
static SQLException |
makeSQLException(Exception cause) |
static SQLException |
makeSQLException(Notice notice)
Converts a single error notice to a single SQLException
|
static SQLException |
makeSQLException(String message,
Exception cause) |
static SQLException |
makeSQLException(String messagePrefix,
Notice notice)
Converts a single error notice to a single SQLException
|
static SQLException |
makeSQLException(String messagePrefix,
String sqlState,
Exception cause) |
static SQLException |
makeSQLExceptionChain(List<Notice> notices)
Converts the given list of notices into a chained list of SQLExceptions
|
static SQLWarning |
makeSQLWarning(Notice notice)
Converts a single warning notice to a single SQLWarning
|
static SQLWarning |
makeSQLWarningChain(List<Notice> notices)
Converts the given list of notices into a chained list of SQLWarnings
|
public static SQLWarning makeSQLWarningChain(List<Notice> notices)
notices - List of notices to convertpublic static SQLException makeSQLExceptionChain(List<Notice> notices)
notices - List of notices to convertpublic static SQLWarning makeSQLWarning(Notice notice)
notice - Notice to convertpublic static SQLException makeSQLException(String messagePrefix, String sqlState, Exception cause)
public static SQLException makeSQLException(String message, Exception cause)
public static SQLException makeSQLException(Exception cause)
public static SQLException makeSQLException(Notice notice)
notice - Notice to convertpublic static SQLException makeSQLException(String messagePrefix, Notice notice)
notice - Notice to convertpublic static SQLWarning chainWarnings(SQLWarning base, SQLWarning add)
base - Base warning chainadd - Warning chain to append to basepublic static SQLWarning chainWarnings(SQLWarning base, RequestExecutorHandlers.Result result)