Class DefaultErrorItem
- java.lang.Object
-
- org.onehippo.forge.pageflow.core.rt.impl.DefaultErrorItem
-
- All Implemented Interfaces:
Serializable
,ErrorItem
public class DefaultErrorItem extends Object implements ErrorItem
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultErrorItem(ResourceBundle defaultResourceBundle, Locale defaultLocale, String code)
DefaultErrorItem(ResourceBundle defaultResourceBundle, Locale defaultLocale, String code, Object[] arguments)
DefaultErrorItem(ResourceBundle defaultResourceBundle, Locale defaultLocale, String code, Object[] arguments, String defaultMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Compares the specified object with thisErrorItem
for equality.String
getCode()
Return the error code.String
getMessage()
Return the (human readable) error message.int
hashCode()
Returns the hash code value for thisErrorItem
.String
toString()
-
-
-
Constructor Detail
-
DefaultErrorItem
public DefaultErrorItem(ResourceBundle defaultResourceBundle, Locale defaultLocale, String code)
-
DefaultErrorItem
public DefaultErrorItem(ResourceBundle defaultResourceBundle, Locale defaultLocale, String code, Object[] arguments)
-
DefaultErrorItem
public DefaultErrorItem(ResourceBundle defaultResourceBundle, Locale defaultLocale, String code, Object[] arguments, String defaultMessage)
-
-
Method Detail
-
getCode
public String getCode()
Description copied from interface:ErrorItem
Return the error code.Application may use this error code as same as a resource bundle key for simplicity.
-
getMessage
public String getMessage()
Description copied from interface:ErrorItem
Return the (human readable) error message.- Specified by:
getMessage
in interfaceErrorItem
- Returns:
- the (human readable) error message
-
equals
public boolean equals(Object o)
Description copied from interface:ErrorItem
Compares the specified object with thisErrorItem
for equality.
-
hashCode
public int hashCode()
Description copied from interface:ErrorItem
Returns the hash code value for thisErrorItem
.
-
-