org.springframework.scripting

Class ScriptCompilationException

  • All Implemented Interfaces:
    java.io.Serializable


    public class ScriptCompilationException
    extends NestedRuntimeException
    Exception to be thrown on script compilation failure.
    Since:
    2.0
    Author:
    Juergen Hoeller
    See Also:
    Serialized Form
    • Constructor Detail

      • ScriptCompilationException

        public ScriptCompilationException(java.lang.String msg)
        Constructor for ScriptCompilationException.
        Parameters:
        msg - the detail message
      • ScriptCompilationException

        public ScriptCompilationException(java.lang.String msg,
                                          java.lang.Throwable cause)
        Constructor for ScriptCompilationException.
        Parameters:
        msg - the detail message
        cause - the root cause (usually from using an underlying script compiler API)
      • ScriptCompilationException

        public ScriptCompilationException(ScriptSource scriptSource,
                                          java.lang.String msg)
        Constructor for ScriptCompilationException.
        Parameters:
        scriptSource - the source for the offending script
        msg - the detail message
        Since:
        4.2
      • ScriptCompilationException

        public ScriptCompilationException(ScriptSource scriptSource,
                                          java.lang.Throwable cause)
        Constructor for ScriptCompilationException.
        Parameters:
        scriptSource - the source for the offending script
        cause - the root cause (usually from using an underlying script compiler API)
      • ScriptCompilationException

        public ScriptCompilationException(ScriptSource scriptSource,
                                          java.lang.String msg,
                                          java.lang.Throwable cause)
        Constructor for ScriptCompilationException.
        Parameters:
        scriptSource - the source for the offending script
        msg - the detail message
        cause - the root cause (usually from using an underlying script compiler API)
    • Method Detail

      • getScriptSource

        @Nullable
        public ScriptSource getScriptSource()
        Return the source for the offending script.
        Returns:
        the source, or null if not available