Package tech.muyan.enums
Enum MessageSeverity
- java.lang.Object
-
- java.lang.Enum<MessageSeverity>
-
- tech.muyan.enums.MessageSeverity
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MessageSeverity>
public enum MessageSeverity extends java.lang.Enum<MessageSeverity>
Enum representing the severity levels of messages. This enum provides different severity levels for messages, including informational, warning, error, and other specialized types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTION_REQUIRED
Action Required message severity level used to push messages that require user action On frontend UI, it will block current screen and there will be a button to acknowledge the messageERROR
Error message severity levelIMPORTANT
Important message severity levelINFO
Informational message severity levelINTERNAL
Internal message severity level used for system information exchange, not actually pushed to usersWARNING
Warning message severity level
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageSeverity
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MessageSeverity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFO
public static final MessageSeverity INFO
Informational message severity level
-
WARNING
public static final MessageSeverity WARNING
Warning message severity level
-
ERROR
public static final MessageSeverity ERROR
Error message severity level
-
IMPORTANT
public static final MessageSeverity IMPORTANT
Important message severity level
-
INTERNAL
public static final MessageSeverity INTERNAL
Internal message severity level used for system information exchange, not actually pushed to users
-
ACTION_REQUIRED
public static final MessageSeverity ACTION_REQUIRED
Action Required message severity level used to push messages that require user action On frontend UI, it will block current screen and there will be a button to acknowledge the message
-
-
Method Detail
-
values
public static MessageSeverity[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MessageSeverity c : MessageSeverity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageSeverity valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-