public class ErrorUtils extends Object
Constructor and Description |
---|
ErrorUtils() |
Modifier and Type | Method and Description |
---|---|
static SQLWarning |
chainWarnings(SQLWarning base,
SQLWarning add)
Creates a single chain of warnings.
|
static SQLException |
makeSQLException(Notice notice)
Converts a single error notice to a single SQLException
|
static SQLException |
makeSQLException(String message,
Notice notice)
Converts a single error notice to a single SQLException
|
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(Notice notice)
notice
- Notice to convertpublic static SQLException makeSQLException(String message, Notice notice)
notice
- Notice to convertpublic static SQLWarning chainWarnings(SQLWarning base, SQLWarning add)
base
- Base warning chainadd
- Warning chain to append to baseCopyright © 2013–2017 impossibl.com. All rights reserved.