Class ErrorItem


  • public class ErrorItem
    extends java.lang.Object
    Used to store special log4j errors which cannot be logged using internal logging. Such errors include those occurring during the initial phases of log4j configuration or errors emanating from core components such as Logger or Hierarchy.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int colNumber
      Column.
      (package private) java.lang.Throwable exception
      Exception.
      (package private) int lineNumber
      Line number.
      (package private) java.lang.String message
      Message.
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorItem​(java.lang.String message)
      Creaet new instance.
      ErrorItem​(java.lang.String message, java.lang.Exception e)
      Create new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dump()
      Dump the details of this ErrorItem to System.out.
      void dump​(java.io.PrintStream ps)
      Dump the details of this ErrorItem on the specified PrintStream.
      int getColNumber()
      Get column number.
      java.lang.Throwable getException()
      Get exception.
      int getLineNumber()
      Get line number.
      java.lang.String getMessage()
      Get message.
      void setColNumber​(int colNumber)
      Set column number.
      void setException​(java.lang.Throwable exception)
      Set exception.
      void setLineNumber​(int lineNumber)
      Set line number.
      void setMessage​(java.lang.String message)
      Set message.
      java.lang.String toString()
      String representation of ErrorItem.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • message

        java.lang.String message
        Message.
      • colNumber

        int colNumber
        Column.
      • lineNumber

        int lineNumber
        Line number.
      • exception

        java.lang.Throwable exception
        Exception.
    • Constructor Detail

      • ErrorItem

        public ErrorItem​(java.lang.String message,
                         java.lang.Exception e)
        Create new instance.
        Parameters:
        message - message
        e - exception
      • ErrorItem

        public ErrorItem​(java.lang.String message)
        Creaet new instance.
        Parameters:
        message - message.
    • Method Detail

      • getColNumber

        public int getColNumber()
        Get column number.
        Returns:
        column number.
      • setColNumber

        public void setColNumber​(int colNumber)
        Set column number.
        Parameters:
        colNumber - new column number.
      • getException

        public java.lang.Throwable getException()
        Get exception.
        Returns:
        exception.
      • setException

        public void setException​(java.lang.Throwable exception)
        Set exception.
        Parameters:
        exception - exception
      • getLineNumber

        public int getLineNumber()
        Get line number.
        Returns:
        line number.
      • setLineNumber

        public void setLineNumber​(int lineNumber)
        Set line number.
        Parameters:
        lineNumber - line number.
      • getMessage

        public java.lang.String getMessage()
        Get message.
        Returns:
        message.
      • setMessage

        public void setMessage​(java.lang.String message)
        Set message.
        Parameters:
        message - message.
      • toString

        public java.lang.String toString()
        String representation of ErrorItem.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string.
      • dump

        public void dump()
        Dump the details of this ErrorItem to System.out.
      • dump

        public void dump​(java.io.PrintStream ps)
        Dump the details of this ErrorItem on the specified PrintStream.
        Parameters:
        ps - print stream.