@Named @RequestScoped public class ErrorHandlerBean extends Object
| Constructor and Description |
|---|
ErrorHandlerBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToErrors(ErrorEvent ee)
Convenience method that observes Event of type
Events.ADD_ERROR_EVENT. |
void |
setJSError(String message)
Pseudo-setter that shows error that originated in JS code, using
as a middle-man. |
void |
showError(String summary,
String detail)
Creates a
on the site. |
public void showError(String summary, String detail)
on the site.summary - - summary of the errordetail - - detailed description of the errorpublic void addToErrors(@Observes
ErrorEvent ee)
Events.ADD_ERROR_EVENT.ee - - event fired upon error.public void setJSError(String message)
as a middle-man.message - - summary and detail separated by '$#$'Copyright © 2016. All rights reserved.