public class

ScriptCompilationException

extends NestedRuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.scripting.ScriptCompilationException

Class Overview

Exception to be thrown on script compilation failure.

Summary

Public Constructors
ScriptCompilationException(String msg)
Constructor for ScriptCompilationException.
ScriptCompilationException(String msg, Throwable cause)
Constructor for ScriptCompilationException.
ScriptCompilationException(ScriptSource scriptSource, Throwable cause)
Constructor for ScriptCompilationException.
ScriptCompilationException(ScriptSource scriptSource, String msg, Throwable cause)
Constructor for ScriptCompilationException.
Public Methods
ScriptSource getScriptSource()
Return the source for the offending script.
[Expand]
Inherited Methods
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ScriptCompilationException (String msg)

Constructor for ScriptCompilationException.

Parameters
msg the detail message

public ScriptCompilationException (String msg, Throwable cause)

Constructor for ScriptCompilationException.

Parameters
msg the detail message
cause the root cause (usually from using an underlying script compiler API)

public ScriptCompilationException (ScriptSource scriptSource, 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)

public ScriptCompilationException (ScriptSource scriptSource, String msg, 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)

Public Methods

public ScriptSource getScriptSource ()

Return the source for the offending script.

Returns
  • the source, or null if not available