|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--CAF.ErrorHandler
Handles CAF client-side errors.
Defined in hidden.js
Constructor Summary | |
CAF.ErrorHandler
()
|
Method Summary | |
<static> void
|
append(msg, level, cat)
|
<static> void
|
handleAsyncClientError(request, exception)
Handles an async response which failed due to a client-side error. |
<static> void
|
handleAsyncServerError(request)
Handles an async response which failed due to a server-side error. |
<static> void
|
handleAsyncUnknownError(request)
Handles an async response which failed due to a response that CAF doesn't understand (usually because the session server-side state is out of sync with the client-side state). |
<static> void
|
handleError(msg)
Handles the display of an error message. |
<static> void
|
handleFormValidationError(forms, msg)
Handles the display of an invalid-form message. |
<static> void
|
handleInfo(msg)
Handles the display of an informational message. |
<static> void
|
handleInputValidationError(input, msg, focus)
Handles the display of an invalid-input message. |
<static> void
|
handleInputValidationFixed(input)
Handles the removal of an invalid-input message. |
<static> void
|
handleLogin(request)
Handles an async response which contained a login form. |
<static> void
|
handleWarn(msg)
Handles the display of a warning message. |
<static> void
|
start()
Start logging. |
<static> void
|
stop()
Stop logging. |
Constructor Detail |
CAF.ErrorHandler()
Method Detail |
<static> void append(msg, level, cat)
<static> void handleAsyncClientError(request, exception)
request
- CAF.Request object.
<static> void handleAsyncServerError(request)
request
- CAF.Request object.
<static> void handleAsyncUnknownError(request)
request
- CAF.Request object.
<static> void handleError(msg)
msg
- Error message.
<static> void handleFormValidationError(forms, msg)
forms
- Array of HTML form elements.
msg
- The error message.
<static> void handleInfo(msg)
msg
- Informational message.
<static> void handleInputValidationError(input, msg, focus)
msg
- The error message.
focus
- (optional) True to focus the input (validation called onsubmit, not onchange).
form
- HTML input element.
<static> void handleInputValidationFixed(input)
form
- HTML input element.
<static> void handleLogin(request)
request
- CAF.Request object.
<static> void handleWarn(msg)
msg
- Warning message.
<static> void start()
<static> void stop()
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |