org.springframework.context
Class NoSuchMessageException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.springframework.context.NoSuchMessageException
All Implemented Interfaces:
Serializable

public class NoSuchMessageException
extends RuntimeException

Exception thrown when a message can't be resolved.

Author:
Rod Johnson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
NoSuchMessageException(String code)
          Create a new exception.
NoSuchMessageException(String code, Locale locale)
          Create a new exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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


Copyright (C) 2003-2004 The Spring Framework Project.