Class ODataJPARuntimeException

  • All Implemented Interfaces:
    Serializable

    public class ODataJPARuntimeException
    extends ODataJPAException
    The exception is thrown for any unexpected errors raising while accessing data from Java Persistence Models. The exception object is created with localized error texts provided error texts are maintained in localized languages.
    See Also:
    Serialized Form
    • Field Detail

      • ENTITY_MANAGER_NOT_INITIALIZED

        public static final MessageReference ENTITY_MANAGER_NOT_INITIALIZED
      • JOIN_CLAUSE_EXPECTED

        public static final MessageReference JOIN_CLAUSE_EXPECTED
      • ERROR_JPQLCTXBLDR_CREATE

        public static final MessageReference ERROR_JPQLCTXBLDR_CREATE
      • ERROR_ODATA_FILTER_CONDITION

        public static final MessageReference ERROR_ODATA_FILTER_CONDITION
      • ERROR_JPQL_QUERY_CREATE

        public static final MessageReference ERROR_JPQL_QUERY_CREATE
      • ERROR_JPQL_CREATE_REQUEST

        public static final MessageReference ERROR_JPQL_CREATE_REQUEST
      • ERROR_JPQL_UPDATE_REQUEST

        public static final MessageReference ERROR_JPQL_UPDATE_REQUEST
      • ERROR_JPQL_DELETE_REQUEST

        public static final MessageReference ERROR_JPQL_DELETE_REQUEST
      • ERROR_JPQL_KEY_VALUE

        public static final MessageReference ERROR_JPQL_KEY_VALUE
      • ERROR_JPQL_PARAM_VALUE

        public static final MessageReference ERROR_JPQL_PARAM_VALUE
      • ERROR_JPQL_UNIQUE_CONSTRAINT

        public static final MessageReference ERROR_JPQL_UNIQUE_CONSTRAINT
      • ERROR_JPQL_INTEGRITY_CONSTRAINT

        public static final MessageReference ERROR_JPQL_INTEGRITY_CONSTRAINT
      • RELATIONSHIP_INVALID

        public static final MessageReference RELATIONSHIP_INVALID
      • RESOURCE_X_NOT_FOUND

        public static final MessageReference RESOURCE_X_NOT_FOUND
      • OPERATOR_EQ_NE_MISSING

        public static final MessageReference OPERATOR_EQ_NE_MISSING
      • FILTER_ON_NAVIGATION_NOT_SUPPORTED

        public static final MessageReference FILTER_ON_NAVIGATION_NOT_SUPPORTED
    • Method Detail

      • throwException

        public static ODataJPARuntimeException throwException​(MessageReference messageReference,
                                                              Throwable e)
        The method creates an exception object of type ODataJPARuntimeException with localized error texts.
        Parameters:
        messageReference - is a mandatory parameter referring to a literal that could be translated to localized error texts.
        e - is an optional parameter representing the previous exception in the call stack
        Returns:
        an instance of ODataJPARuntimeException which can be then raised.