public class WebScriptException extends org.springframework.extensions.surf.exception.PlatformRuntimeException implements StatusTemplateFactory
| Constructor and Description |
|---|
WebScriptException(int status,
String msgId) |
WebScriptException(int status,
String msgId,
Object... args) |
WebScriptException(int status,
String msgId,
Throwable cause) |
WebScriptException(int status,
String msgId,
Throwable cause,
Object... args) |
WebScriptException(String msgId) |
WebScriptException(String msgId,
Object... args) |
WebScriptException(String msgId,
Throwable cause) |
WebScriptException(String msgId,
Throwable cause,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
int |
getStatus()
Get status code
|
Map<String,Object> |
getStatusModel()
Get status model
|
StatusTemplate |
getStatusTemplate()
Get status template
|
void |
setStatusTemplate(StatusTemplate statusTemplate,
Map<String,Object> statusModel)
Deprecated.
|
void |
setStatusTemplateFactory(StatusTemplateFactory statusTemplateFactory)
Associates a factory for the lazy retrieval of an advanced description of the status code associated with this
exception
|
create, create, makeRuntimeExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic WebScriptException(String msgId)
public WebScriptException(int status,
String msgId)
public void setStatusTemplate(StatusTemplate statusTemplate, Map<String,Object> statusModel)
statusTemplate - status templatestatusModel - template modelpublic void setStatusTemplateFactory(StatusTemplateFactory statusTemplateFactory)
statusTemplateFactory - the factory to setpublic int getStatus()
public StatusTemplate getStatusTemplate()
getStatusTemplate in interface StatusTemplateFactorypublic Map<String,Object> getStatusModel()
getStatusModel in interface StatusTemplateFactoryCopyright © 2005–2021 Alfresco Software. All rights reserved.