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`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getLocalizedMessage(MessageReference context, Throwable exception)` The method returns a language dependent message texts for the given `MessageReference`.

- - ### Method Detail

    - #### 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-2023 The Apache Software Foundation. All Rights Reserved.