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:
java.io.Serializable,StatusTemplateFactory
public class WebScriptException extends org.springframework.extensions.surf.exception.PlatformRuntimeException implements StatusTemplateFactory
Web Script Exceptions.- Author:
- David Caruana
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebScriptException(int status, java.lang.String msgId)WebScriptException(int status, java.lang.String msgId, java.lang.Object... args)WebScriptException(int status, java.lang.String msgId, java.lang.Throwable cause)WebScriptException(int status, java.lang.String msgId, java.lang.Throwable cause, java.lang.Object... args)WebScriptException(java.lang.String msgId)WebScriptException(java.lang.String msgId, java.lang.Object... args)WebScriptException(java.lang.String msgId, java.lang.Throwable cause)WebScriptException(java.lang.String msgId, java.lang.Throwable cause, java.lang.Object... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetStatus()Get status codejava.util.Map<java.lang.String,java.lang.Object>getStatusModel()Get status modelStatusTemplategetStatusTemplate()Get status templatevoidsetStatusTemplate(StatusTemplate statusTemplate, java.util.Map<java.lang.String,java.lang.Object> statusModel)Deprecated.voidsetStatusTemplateFactory(StatusTemplateFactory statusTemplateFactory)Associates a factory for the lazy retrieval of an advanced description of the status code associated with this exception-
Methods inherited from class org.springframework.extensions.surf.exception.PlatformRuntimeException
create, create, makeRuntimeException
-
-
-
-
Constructor Detail
-
WebScriptException
public WebScriptException(java.lang.String msgId)
-
WebScriptException
public WebScriptException(int status, java.lang.String msgId)
-
WebScriptException
public WebScriptException(java.lang.String msgId, java.lang.Throwable cause)
-
WebScriptException
public WebScriptException(int status, java.lang.String msgId, java.lang.Throwable cause)
-
WebScriptException
public WebScriptException(java.lang.String msgId, java.lang.Object... args)
-
WebScriptException
public WebScriptException(int status, java.lang.String msgId, java.lang.Object... args)
-
WebScriptException
public WebScriptException(java.lang.String msgId, java.lang.Throwable cause, java.lang.Object... args)
-
WebScriptException
public WebScriptException(int status, java.lang.String msgId, java.lang.Throwable cause, java.lang.Object... args)
-
-
Method Detail
-
setStatusTemplate
public void setStatusTemplate(StatusTemplate statusTemplate, java.util.Map<java.lang.String,java.lang.Object> statusModel)
Deprecated.Attach an advanced description of the status code associated to this exception- Parameters:
statusTemplate- status templatestatusModel- template model
-
setStatusTemplateFactory
public void setStatusTemplateFactory(StatusTemplateFactory statusTemplateFactory)
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
public StatusTemplate getStatusTemplate()
Get status template- Specified by:
getStatusTemplatein interfaceStatusTemplateFactory- Returns:
- template
-
getStatusModel
public java.util.Map<java.lang.String,java.lang.Object> getStatusModel()
Get status model- Specified by:
getStatusModelin interfaceStatusTemplateFactory- Returns:
- model
-
-