Class ThrowablePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class ThrowablePanel extends JScrollPane
A panel that can display an exception stack trace.
Version:
$Revision: 1.5 $
See Also:
  • Field Details

  • Constructor Details

    • ThrowablePanel

      public ThrowablePanel()
      Create a new panel.
    • ThrowablePanel

      public ThrowablePanel(Throwable t)
      Create a new panel.
      Parameters:
      t - The exception to display.
  • Method Details

    • setException

      public void setException(Throwable t)
      Set the exception that is being displayed.
      Parameters:
      t - The new exception.
    • getException

      public Throwable getException()
      Return the exception that is being displayed.
      Returns:
      The exception.
    • makeString

      private static String makeString(Throwable t)
      Make a string from the exception.
      Parameters:
      t - The throwable object
      Returns:
      A string containing the stack trace
    • assertNotNull

      protected final void assertNotNull(String fieldName, Object fieldValue) throws DetailedNullPointerException
      Verify that the specified value is not null. If it is then throw an exception
      Parameters:
      fieldName - The name of the field to check
      fieldValue - The value of the field to check
      Throws:
      DetailedNullPointerException - If fieldValue is null