Package org.apache.derby.iapi.error
Class ErrorStringBuilder
java.lang.Object
org.apache.derby.iapi.error.ErrorStringBuilder
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
FieldsModifier and TypeFieldDescriptionprivate PrintWriterGetHeader
private PrintWriter
private StringWriter
-
Constructor Summary
ConstructorsConstructorDescriptionErrorStringBuilder
(PrintWriterGetHeader headerGetter) Construct an error string builder -
Method Summary
-
Field Details
-
stringWriter
-
printWriter
-
headerGetter
-
-
Constructor Details
-
ErrorStringBuilder
Construct an error string builder
-
-
Method Details
-
append
Append an error string- Parameters:
s
- the string to append
-
appendln
Append an error string with a newline- Parameters:
s
- the string to append
-
stackTrace
Print a stacktrace from the throwable in the error buffer.- Parameters:
t
- the error
-
reset
public void reset()Reset the buffer -- truncate it down to nothing. -
get
Get the buffer
-