Class LanguageNotSupportedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class LanguageNotSupportedException
    extends OData2ServicesException
    Indicates an attempt to use an invalid or unsupported ISO code with the localized data.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LanguageNotSupportedException​(java.lang.String isoCode)
      Instantiates this exception without a root cause.
      LanguageNotSupportedException​(java.lang.String language, java.lang.Exception e)
      Constructor to create LanguageNotSupportedException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLanguage()  
      • Methods inherited from class org.apache.olingo.odata2.api.exception.ODataRuntimeApplicationException

        getCode, getHttpStatus, getLocale
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • LanguageNotSupportedException

        public LanguageNotSupportedException​(java.lang.String isoCode)
        Instantiates this exception without a root cause.
        Parameters:
        isoCode - an invalid ISO code or an ISO code that is not supported by the Integration API
      • LanguageNotSupportedException

        public LanguageNotSupportedException​(java.lang.String language,
                                             java.lang.Exception e)
        Constructor to create LanguageNotSupportedException
        Parameters:
        language - language that does not correspond to an existing LanguageModel
        e - exception that was thrown
    • Method Detail

      • getLanguage

        public java.lang.String getLanguage()