org.springframework.context

## 类 NoSuchMessageException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.springframework.context.NoSuchMessageException

- 所有已实现的接口:
    Serializable

      public class NoSuchMessageException
      extends RuntimeException

  Exception thrown when a message can't be resolved.
  作者:
    Rod Johnson
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `NoSuchMessageException(String code)` Create a new exception.
    `NoSuchMessageException(String code, Locale locale)` Create a new exception.

  - ### 方法概要

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

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

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

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

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

    - #### NoSuchMessageException

          public NoSuchMessageException(String code,
                                        Locale locale)

      Create a new exception.
      参数:
        `code` - code that could not be resolved for given locale
        `locale` - locale that was used to search for the code within

    - #### NoSuchMessageException

          public NoSuchMessageException(String code)

      Create a new exception.
      参数:
        `code` - code that could not be resolved for given locale