Esempio n. 1
0
 /**
  * Prints the composite message and the embedded stack trace to the specified print stream.
  *
  * @param stream Stream to print to.
  */
 public void printStackTrace(final PrintStream stream) {
   if (linked == null || NestedThrowable.PARENT_TRACE_ENABLED) super.printStackTrace(stream);
   NestedThrowable.Util.print(linked, stream);
 }
Esempio n. 2
0
 /**
  * Prints the composite message and the embedded stack trace to the specified print writer.
  *
  * @param writer Writer to print to.
  */
 public void printStackTrace(final PrintWriter writer) {
   if (linked == null || NestedThrowable.PARENT_TRACE_ENABLED) super.printStackTrace(writer);
   NestedThrowable.Util.print(linked, writer);
 }
Esempio n. 3
0
 /**
  * Returns the composite throwable message.
  *
  * @return The composite throwable message.
  */
 public String getMessage() {
   return NestedThrowable.Util.getMessage(super.getMessage(), linked);
 }