# Uses of Class
org.springframework.context.NoSuchMessageException

Packages that use NoSuchMessageException
Package
Description
org.springframework.context
This package builds on the beans package to add support for message sources and for the Observer design pattern, and the ability for application objects to obtain resources using a consistent API.
org.springframework.context.support
Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.

## Uses of NoSuchMessageException in org.springframework.context

Methods in org.springframework.context that throw NoSuchMessageException
Modifier and Type
Method
Description
`String`
MessageSource.`getMessage(String code, Object[] args, Locale locale)`
Try to resolve the message.
`String`
MessageSource.`getMessage(MessageSourceResolvable resolvable, Locale locale)`
Try to resolve the message using all the attributes contained within the `MessageSourceResolvable` argument that was passed in.

## Uses of NoSuchMessageException in org.springframework.context.support

Methods in org.springframework.context.support that throw NoSuchMessageException
Modifier and Type
Method
Description
`String`
AbstractApplicationContext.`getMessage(String code, Object[] args, Locale locale)`
`String`
AbstractApplicationContext.`getMessage(MessageSourceResolvable resolvable, Locale locale)`
`final String`
AbstractMessageSource.`getMessage(String code, Object[] args, Locale locale)`
`final String`
AbstractMessageSource.`getMessage(MessageSourceResolvable resolvable, Locale locale)`
`String`
DelegatingMessageSource.`getMessage(String code, Object[] args, Locale locale)`
`String`
DelegatingMessageSource.`getMessage(MessageSourceResolvable resolvable, Locale locale)`
`String`
MessageSourceAccessor.`getMessage(String code)`
Retrieve the message for the given code and the default Locale.
`String`
MessageSourceAccessor.`getMessage(String code, Object[] args)`
Retrieve the message for the given code and the default Locale.
`String`
MessageSourceAccessor.`getMessage(String code, Object[] args, Locale locale)`
Retrieve the message for the given code and the given Locale.
`String`
MessageSourceAccessor.`getMessage(String code, Locale locale)`
Retrieve the message for the given code and the given Locale.
`String`
MessageSourceAccessor.`getMessage(MessageSourceResolvable resolvable)`
Retrieve the given MessageSourceResolvable (for example, an ObjectError instance) in the default Locale.
`String`
MessageSourceAccessor.`getMessage(MessageSourceResolvable resolvable, Locale locale)`
Retrieve the given MessageSourceResolvable (for example, an ObjectError instance) in the given Locale.