Class ErrorStringBuilder

java.lang.Object
org.apache.derby.iapi.error.ErrorStringBuilder

public class ErrorStringBuilder extends 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 Details

  • Constructor Details

    • ErrorStringBuilder

      public ErrorStringBuilder(PrintWriterGetHeader headerGetter)
      Construct an error string builder
  • Method Details

    • append

      public void append(String s)
      Append an error string
      Parameters:
      s - the string to append
    • appendln

      public void appendln(String s)
      Append an error string with a newline
      Parameters:
      s - the string to append
    • stackTrace

      public void stackTrace(Throwable t)
      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

      public StringBuffer get()
      Get the buffer