Class ThrowableInformation

  • All Implemented Interfaces:
    java.io.Serializable

    public class ThrowableInformation
    extends java.lang.Object
    implements java.io.Serializable
    Log4j's internal representation of throwables.
    See Also:
    Serialized Form
    • Field Detail

      • throwable

        private transient java.lang.Throwable throwable
      • category

        private transient Category category
      • rep

        private java.lang.String[] rep
      • TO_STRING_LIST

        private static final java.lang.reflect.Method TO_STRING_LIST
    • Constructor Detail

      • ThrowableInformation

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

        public ThrowableInformation​(java.lang.Throwable throwable)
        Constructs new instance.
      • ThrowableInformation

        public ThrowableInformation​(java.lang.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 Detail

      • getThrowable

        public java.lang.Throwable getThrowable()
      • getThrowableStrRep

        public java.lang.String[] getThrowableStrRep()