Class WarningMessage
java.lang.Object
java.lang.Throwable
java.lang.Exception
br.net.dd.netherwingcore.common.logging.Message
br.net.dd.netherwingcore.common.logging.WarningMessage
- All Implemented Interfaces:
Detail, Serializable
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 Summary
ConstructorsConstructorDescriptionWarningMessage(String message) Constructs aWarningMessagewith the specified message content. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WarningMessage
Constructs aWarningMessagewith the specified message content. The severity level is automatically set toLevel.WARNING.- Parameters:
message- The content of the warning message.
-