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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Throwable translate​(javax.script.ScriptException scriptException)
      Translates the ScriptException.
    • Method Detail

      • translate

        java.lang.Throwable translate​(javax.script.ScriptException scriptException)
        Translates the ScriptException.
        Parameters:
        scriptException - ScriptException.
        Returns:
        Translated Throwable or null to throw original ScriptException.