org.springframework.scripting

## 类 ScriptCompilationException

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

- 所有已实现的接口:
    Serializable

      public class ScriptCompilationException
      extends org.springframework.core.NestedRuntimeException

  Exception to be thrown on script compilation failure.
  从以下版本开始:
    2.0
  作者:
    Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `ScriptCompilationException(ScriptSource scriptSource, String msg)` Constructor for ScriptCompilationException.
    `ScriptCompilationException(ScriptSource scriptSource, String msg, Throwable cause)` Constructor for ScriptCompilationException.
    `ScriptCompilationException(ScriptSource scriptSource, Throwable cause)` Constructor for ScriptCompilationException.
    `ScriptCompilationException(String msg)` Constructor for ScriptCompilationException.
    `ScriptCompilationException(String msg, Throwable cause)` Constructor for ScriptCompilationException.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `ScriptSource` | `getScriptSource()` Return the source for the offending script.

    - ### 从类继承的方法 org.springframework.core.NestedRuntimeException

      `contains, getMessage, getMostSpecificCause, getRootCause`

    - ### 从类继承的方法 java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### ScriptCompilationException

          public ScriptCompilationException(String msg)

      Constructor for ScriptCompilationException.
      参数:
        `msg` - the detail message

    - #### ScriptCompilationException

          public ScriptCompilationException(String msg,
                                            Throwable cause)

      Constructor for ScriptCompilationException.
      参数:
        `msg` - the detail message
        `cause` - the root cause (usually from using an underlying script compiler API)

    - #### ScriptCompilationException

          public ScriptCompilationException(ScriptSource scriptSource,
                                            String msg)

      Constructor for ScriptCompilationException.
      参数:
        `scriptSource` - the source for the offending script
        `msg` - the detail message
      从以下版本开始:
        4.2

    - #### ScriptCompilationException

          public ScriptCompilationException(ScriptSource scriptSource,
                                            Throwable cause)

      Constructor for ScriptCompilationException.
      参数:
        `scriptSource` - the source for the offending script
        `cause` - the root cause (usually from using an underlying script compiler API)

    - #### ScriptCompilationException

          public ScriptCompilationException(ScriptSource scriptSource,
                                            String msg,
                                            Throwable cause)

      Constructor for ScriptCompilationException.
      参数:
        `scriptSource` - the source for the offending script
        `msg` - the detail message
        `cause` - the root cause (usually from using an underlying script compiler API)

  - ### 方法详细资料

    - #### getScriptSource

          @Nullable
          public ScriptSource getScriptSource()

      Return the source for the offending script.
      返回:
        the source, or `null` if not available