Class WarningMessage

All Implemented Interfaces:
Detail, Serializable

public class WarningMessage extends Message
Represents a warning message in the logging system. This class extends the base Message class, and it is categorized specifically as a warning by setting the Level to Level.WARNING.

This class can be used to differentiate between various types of log messages in the application.

Example Usage:

    WarningMessage warning = new WarningMessage("This is a warning message");
    System.out.println(warning.getMessage());
See Also:
  • Constructor Details

    • WarningMessage

      public WarningMessage(String message)
      Constructs a WarningMessage with the specified message content. The severity level is automatically set to Level.WARNING.
      Parameters:
      message - The content of the warning message.