Package be.recipe.common.exceptions
Class RecipeError
- java.lang.Object
-
- be.recipe.common.exceptions.RecipeError
-
- All Implemented Interfaces:
Serializable
public class RecipeError extends Object implements Serializable
The Class RecipeError. Contains a localized message, severity and resolution- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecipeError()Instantiates a new recipe error.RecipeError(String i18nMsg)Instantiates a new recipe error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Gets the message.StringgetResolution()Gets the resolution.StringgetSeverity()Gets the severity.voidsetMessage(String message)Sets the message.voidsetResolution(String resolution)Sets the resolution.voidsetSeverity(String severity)Sets the severity.
-
-
-
Constructor Detail
-
RecipeError
public RecipeError()
Instantiates a new recipe error.
-
RecipeError
public RecipeError(String i18nMsg)
Instantiates a new recipe error.- Parameters:
i18nMsg- the i18n msg
-
-
Method Detail
-
getMessage
public String getMessage()
Gets the message.- Returns:
- the message
-
getSeverity
public String getSeverity()
Gets the severity.- Returns:
- the severity
-
getResolution
public String getResolution()
Gets the resolution.- Returns:
- the resolution
-
setMessage
public void setMessage(String message)
Sets the message.- Parameters:
message- the new message
-
setSeverity
public void setSeverity(String severity)
Sets the severity.- Parameters:
severity- the new severity
-
setResolution
public void setResolution(String resolution)
Sets the resolution.- Parameters:
resolution- the new resolution
-
-