Class WebScriptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.extensions.surf.exception.PlatformRuntimeException
org.springframework.extensions.webscripts.WebScriptException
- All Implemented Interfaces:
Serializable,StatusTemplateFactory
public class WebScriptException
extends org.springframework.extensions.surf.exception.PlatformRuntimeException
implements StatusTemplateFactory
Web Script Exceptions.
- Author:
- David Caruana
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWebScriptException(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) -
Method Summary
Modifier and TypeMethodDescriptionintGet status codeGet status modelGet status templatevoidsetStatusTemplate(StatusTemplate statusTemplate, Map<String, Object> statusModel) Deprecated.voidsetStatusTemplateFactory(StatusTemplateFactory statusTemplateFactory) Associates a factory for the lazy retrieval of an advanced description of the status code associated with this exceptionMethods inherited from class org.springframework.extensions.surf.exception.PlatformRuntimeException
create, create, makeRuntimeExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WebScriptException
-
WebScriptException
-
WebScriptException
-
WebScriptException
-
WebScriptException
-
WebScriptException
-
WebScriptException
-
WebScriptException
-
-
Method Details
-
setStatusTemplate
Deprecated.Attach an advanced description of the status code associated to this exception- Parameters:
statusTemplate- status templatestatusModel- template model
-
setStatusTemplateFactory
Associates a factory for the lazy retrieval of an advanced description of the status code associated with this exception- Parameters:
statusTemplateFactory- the factory to set
-
getStatus
public int getStatus()Get status code- Returns:
- status code
-
getStatusTemplate
Get status template- Specified by:
getStatusTemplatein interfaceStatusTemplateFactory- Returns:
- template
-
getStatusModel
Get status model- Specified by:
getStatusModelin interfaceStatusTemplateFactory- Returns:
- model
-