Class ThrowableInformation

java.lang.Object
org.apache.log4j.spi.ThrowableInformation
All Implemented Interfaces:
Serializable

public class ThrowableInformation extends Object implements Serializable
Log4j's internal representation of throwables.
See Also:
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      See Also:
    • throwable

      private transient Throwable throwable
    • category

      private transient Category category
    • rep

      private String[] rep
    • TO_STRING_LIST

      private static final Method TO_STRING_LIST
  • Constructor Details

    • ThrowableInformation

      public ThrowableInformation(String[] r)
      Constructs new instance.
      Parameters:
      r - String representation of throwable.
      Since:
      1.2.15
    • ThrowableInformation

      public ThrowableInformation(Throwable throwable)
      Constructs new instance.
    • ThrowableInformation

      public ThrowableInformation(Throwable throwable, Category category)
      Constructs a new instance.
      Parameters:
      throwable - throwable, may not be null.
      category - category used to obtain ThrowableRenderer, may be null.
      Since:
      1.2.16
  • Method Details

    • getThrowable

      public Throwable getThrowable()
    • getThrowableStrRep

      public String[] getThrowableStrRep()