org.apache.olingo.odata2.jpa.processor.api.exception
Interface ODataJPAMessageService
public interface ODataJPAMessageService
The interface is used to access language dependent message texts. Default
language is "English - EN".
The default implementation of the interface shipped with the library loads
message texts from language dependent property files. If the message text is
not found for the given language then the default language -EN is used for
the message texts.
- See Also:
ODataJPAException
,
ODataJPARuntimeException
,
ODataJPAModelException
,
MessageReference
getLocalizedMessage
String getLocalizedMessage(MessageReference context,
Throwable exception)
- The method returns a language dependent message texts for the given
MessageReference
.
- Parameters:
context
- is a Message Reference
exception
is a Throwable Exception
- Returns:
- a language dependent message text
Copyright © 2013-2015 The Apache Software Foundation. All Rights Reserved.