org.springframework.context
Class NoSuchMessageException

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

public class NoSuchMessageException
extends RuntimeException

Exception thrown when a message can't be resolved.

Author:
Rod Johnson

Constructor Summary
NoSuchMessageException(String code, Locale locale)
          Create a new exception.
NoSuchMessageException(String code)
          Create a new exception.

Methods inherited from class java.lang.Throwable
printStackTrace, printStackTrace, printStackTrace, getStackTrace, setStackTrace, getLocalizedMessage, getMessage, toString, fillInStackTrace, getCause, initCause

Methods inherited from class java.lang.Object
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals

Constructor Detail

NoSuchMessageException

public NoSuchMessageException(String code, Locale locale)
Create a new exception.
Parameters:
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.
Parameters:
code - code that could not be resolved for given locale