Class ErrorMessage
java.lang.Object
java.lang.Throwable
java.lang.Exception
br.net.dd.netherwingcore.common.logging.Message
br.net.dd.netherwingcore.common.logging.ErrorMessage
- All Implemented Interfaces:
Detail, Serializable
The
ErrorMessage class represents a specialized type of Message
that is used to log error-level messages in the system. It extends the Message
class and automatically sets the level to Level.ERROR.
This class can be used whenever an error message needs to be logged or handled, ensuring it is appropriately flagged as an error-level message. Example usage:
ErrorMessage errorMsg = new ErrorMessage("An error occurred");
System.out.println(errorMsg);
Note: The Level enum and the Message class are assumed to be defined elsewhere
in the application.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionErrorMessage(String message) Constructs a newErrorMessageinstance with 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
-
ErrorMessage
Constructs a newErrorMessageinstance with the specified message content.- Parameters:
message- The content of the error message.
-