Package net.officefloor.script
Interface ScriptExceptionTranslator
- All Known Implementing Classes:
GraalvmScriptExceptionTranslator
public interface ScriptExceptionTranslator
Translate ScriptException to possible more appropriate
Throwable.
For example, the HttpException may be wrapped in the
ScriptException and this provides means to extract and throw.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptiontranslate(ScriptException scriptException) Translates theScriptException.
-
Method Details
-
translate
Translates theScriptException.- Parameters:
scriptException-ScriptException.- Returns:
- Translated
Throwableornullto throw originalScriptException.
-