public class ResultException extends Exception
| Constructor and Description |
|---|
ResultException()
Constructs a new result set exception.
|
ResultException(Exception e)
Constructs a new result set exception with info from the exception.
|
ResultException(ResultSet rs)
Constructs a new result set exception with a result set.
|
ResultException(String s)
Constructs a new result set exception with a detailed message.
|
ResultException(String s,
ResultSet rs)
Constructs a new result set exception with a detailed message and a
result set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String msg)
A convenience method to add a Result.ERROR.
|
void |
addError(String msg,
String file,
int line)
A convenience method to add a Result.ERROR.
|
void |
addErrorWithStack(String msg,
Exception exception)
A convenience method to add a Result.ERROR with a stack trace in the
moreMessages part.
|
void |
addErrorWithStack(String msg,
String stack)
A convenience method to add a Result.ERROR with a stack trace in the
moreMessages part.
|
void |
addFatalWithStack(String msg,
Exception exception)
A convenience method to add a Result.FATAL with a stack trace in the
moreMessages part.
|
void |
moreMessages(String msg)
Adds more messages to the last result.
|
void |
populate(ResultSet rs)
This is a convenience function to populate an existing result set with
the contents of this exception.
|
void |
setLocationInfo(String f,
int l)
A convenience function to set the file and line number on the last result
that was added.
|
String |
toString()
Dumps the result set.
|
Object |
userData(String key) |
void |
userData(String key,
Object value)
Store arbitrary data with this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic ResultSet result
public ResultException()
public ResultException(String s)
s - String the messagepublic ResultException(Exception e)
e - The exception on which the ResultExcpetion is based.public ResultException(ResultSet rs)
rs - ResultSet the result setpublic void userData(String key, Object value)
key - the key to store tovalue - the datapublic Object userData(String key)
key - a previously added keypublic void populate(ResultSet rs)
public void addError(String msg)
msg - String the error messagepublic void addError(String msg, String file, int line)
msg - String the error messagepublic void addErrorWithStack(String msg, String stack)
msg - String the error messagestack - String the stack tracepublic void addErrorWithStack(String msg, Exception exception)
msg - String the error messageexception - The exception whose stack we'll display.public void addFatalWithStack(String msg, Exception exception)
msg - String the error messageexception - The exception whose stack we'll display.public void setLocationInfo(String f, int l)
f - The file name.l - The line number.public void moreMessages(String msg)
msg - The message to be added.Copyright © 2023. All rights reserved.