Class WarningEvent

    • Constructor Detail

      • WarningEvent

        public WarningEvent​(Resource source,
                            LogRecord description)
        Constructs an event for a warning that occurred in the given resource.
        Parameters:
        source - the resource on which the warning initially occurred.
        description - log record containing warning message, stack trace (if any) and other information.
        Throws:
        Illegal­Argument­Exception - if the given source is null.
        Null­Pointer­Exception - if the given description is null.
    • Method Detail

      • getDescription

        public LogRecord getDescription()
        Returns the warning message together with stack trace (if any) and other information.
        Returns:
        the log record containing warning message, stack trace and other information.
      • toString

        public String toString()
        Returns a string representation of this warning for debugging purpose.
        Overrides:
        to­String in class Event­Object
        Returns:
        a string representation of this warning.