|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> services >> [ context overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.derby.iapi.services.context
Class ErrorStringBuilder

java.lang.Objectorg.apache.derby.iapi.services.context.ErrorStringBuilder
- public class ErrorStringBuilder
- extends java.lang.Object
Class used to form error messages. Primary reason for existence is to allow a way to call printStackTrace() w/o automatically writting to a stream.
| Field Summary | |
private org.apache.derby.iapi.services.stream.PrintWriterGetHeader |
headerGetter
|
private java.io.PrintWriter |
printWriter
|
private java.io.StringWriter |
stringWriter
|
| Constructor Summary | |
ErrorStringBuilder(org.apache.derby.iapi.services.stream.PrintWriterGetHeader headerGetter)
Construct an error string builder |
|
| Method Summary | |
void |
append(java.lang.String s)
Append an error string |
void |
appendln(java.lang.String s)
Append an error string with a newline |
java.lang.StringBuffer |
get()
Get the buffer |
void |
reset()
Reset the buffer -- truncate it down to nothing. |
void |
stackTrace(java.lang.Throwable t)
Print a stacktrace from the throwable in the error buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
stringWriter
private java.io.StringWriter stringWriter
printWriter
private java.io.PrintWriter printWriter
headerGetter
private org.apache.derby.iapi.services.stream.PrintWriterGetHeader headerGetter
| Constructor Detail |
ErrorStringBuilder
public ErrorStringBuilder(org.apache.derby.iapi.services.stream.PrintWriterGetHeader headerGetter)
- Construct an error string builder
| Method Detail |
append
public void append(java.lang.String s)
- Append an error string
appendln
public void appendln(java.lang.String s)
- Append an error string with a newline
stackTrace
public void stackTrace(java.lang.Throwable t)
- Print a stacktrace from the throwable in the error
buffer.
reset
public void reset()
- Reset the buffer -- truncate it down to nothing.
get
public java.lang.StringBuffer get()
- Get the buffer
|
|||||||||
| Home >> All >> org >> apache >> derby >> iapi >> services >> [ context overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.derby.iapi.services.context.ErrorStringBuilder