Class ResultLog.Entry

  • Enclosing class:
    ResultLog

    public static class ResultLog.Entry
    extends java.lang.Object
    An entry in this log
    • Constructor Detail

      • Entry

        public Entry​(Result.Status s,
                     java.lang.String message)
        Parameters:
        s - The status of the message
        message - The message
      • Entry

        public Entry​(java.lang.String message,
                     boolean isDebug)
        Parameters:
        message - The message with status OK
        isDebug - Whether this is a debug message
      • Entry

        public Entry​(java.lang.String message,
                     boolean isDebug,
                     java.lang.Exception exception)
        Parameters:
        message - The message with status OK
        isDebug - Whether this is a debug message
        exception - An exception that belongs to this message
      • Entry

        public Entry​(Result.Status s,
                     java.lang.String message,
                     java.lang.Exception exception)
        Parameters:
        s - The status of the message
        message - The message
        exception - An exception that belongs to this message
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getStatus

        public Result.Status getStatus()
        Returns:
        The status of this entry
      • getLogLevel

        public java.lang.String getLogLevel()
        Returns:
        The log level of this entry
      • getMessage

        public java.lang.String getMessage()
        Returns:
        The message of this entry
      • getException

        public java.lang.Exception getException()
        Returns:
        The exception of this entry or null if no exception exists for this message
      • isDebug

        public boolean isDebug()
        Returns:
        true if this is a debug message