src/main/java/org/jboss/util/NestedThrowable.java
/**
       * Prints the nested <code>Throwable</code> to the given stream.
       *
       * @param nested  Nested <code>Throwable</code>.
       * @param stream  Stream to print to.
       */
Prints the nested Throwable to the given stream.
@param nested  Nested Throwable.
@param stream  Stream to print to.
Prints the nested Throwable to the given stream . @param nested Nested Throwable . @param stream Stream to print to .
public static void print(final Throwable nested,
                               final PrintStream stream)
      {
         if (stream == null)
            throw new NullArgumentException("stream");
         if (NestedThrowable.NESTED_TRACE_ENABLED && nested != null) {
            synchronized (stream) {
               if (NestedThrowable.PARENT_TRACE_ENABLED) {
                  stream.print(" + nested throwable: ");
               }
               else {
                  stream.print("[ parent trace omitted ]: ");
               }
               nested.printStackTrace(stream);
            }
         }
      }
public static void print ( final Throwable nested , final PrintStream stream ) { if ( stream == null ) throw new NullArgumentException ( "stream" ) ; if ( NestedThrowable . NESTED_TRACE_ENABLED && nested != null ) { synchronized ( stream ) { if ( NestedThrowable . PARENT_TRACE_ENABLED ) { stream . print ( " + nested throwable: " ) ; } else { stream . print ( "[ parent trace omitted ]: " ) ; } nested . printStackTrace ( stream ) ; } } }
Prints the nested <code>Throwable</code> to the given stream.
Prints the nested <code > Throwable< / code > to the given stream .