Class ScriptingExceptionHandler
java.lang.Object
org.eclipse.dirigible.commons.api.service.AbstractExceptionHandler<ScriptingException>
org.eclipse.dirigible.engine.js.service.ScriptingExceptionHandler
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<ScriptingException>,IRestExceptionHandler<ScriptingException>
@Provider public class ScriptingExceptionHandler extends AbstractExceptionHandler<ScriptingException>
The Class ScriptingDependencyExceptionHandler.
-
Constructor Summary
Constructors Constructor Description ScriptingExceptionHandler() -
Method Summary
Modifier and Type Method Description protected org.slf4j.LoggergetLogger()Gets the logger.protected StringgetResponseMessage(ScriptingException exception)Gets the response message.protected javax.ws.rs.core.Response.StatusgetResponseStatus(ScriptingException exception)Gets the response status.Class<? extends AbstractExceptionHandler<ScriptingException>>getType()Gets the type.protected voidlogErrorMessage(org.slf4j.Logger logger, ScriptingException exception)Log error message.Methods inherited from class org.eclipse.dirigible.commons.api.service.AbstractExceptionHandler
toResponse
-
Constructor Details
-
ScriptingExceptionHandler
public ScriptingExceptionHandler()
-
-
Method Details
-
getType
Gets the type.- Specified by:
getTypein interfaceIRestExceptionHandler<ScriptingException>- Specified by:
getTypein classAbstractExceptionHandler<ScriptingException>- Returns:
- the type
-
getLogger
protected org.slf4j.Logger getLogger()Gets the logger.- Specified by:
getLoggerin classAbstractExceptionHandler<ScriptingException>- Returns:
- the logger
-
logErrorMessage
Log error message.- Overrides:
logErrorMessagein classAbstractExceptionHandler<ScriptingException>- Parameters:
logger- the loggerexception- the exception
-
getResponseStatus
Gets the response status.- Specified by:
getResponseStatusin classAbstractExceptionHandler<ScriptingException>- Parameters:
exception- the exception- Returns:
- the response status
-
getResponseMessage
Gets the response message.- Specified by:
getResponseMessagein classAbstractExceptionHandler<ScriptingException>- Parameters:
exception- the exception- Returns:
- the response message
-