org.apache.olingo.odata2.jpa.processor.api.exception
Class ODataJPAModelException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.olingo.odata2.api.exception.ODataException
org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPAException
org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPAModelException
- All Implemented Interfaces:
- Serializable
public class ODataJPAModelException
- extends ODataJPAException
The exception is thrown for any unexpected errors raising while
accessing/transforming Java Persistence Models.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
INVALID_ENTITY_TYPE
public static final MessageReference INVALID_ENTITY_TYPE
INVALID_COMPLEX_TYPE
public static final MessageReference INVALID_COMPLEX_TYPE
INVALID_ASSOCIATION
public static final MessageReference INVALID_ASSOCIATION
INVALID_ENTITYSET
public static final MessageReference INVALID_ENTITYSET
INVALID_ENTITYCONTAINER
public static final MessageReference INVALID_ENTITYCONTAINER
INVALID_ASSOCIATION_SET
public static final MessageReference INVALID_ASSOCIATION_SET
INVALID_FUNC_IMPORT
public static final MessageReference INVALID_FUNC_IMPORT
BUILDER_NULL
public static final MessageReference BUILDER_NULL
TYPE_NOT_SUPPORTED
public static final MessageReference TYPE_NOT_SUPPORTED
FUNC_ENTITYSET_EXP
public static final MessageReference FUNC_ENTITYSET_EXP
FUNC_RETURN_TYPE_EXP
public static final MessageReference FUNC_RETURN_TYPE_EXP
FUNC_RETURN_TYPE_ENTITY_NOT_FOUND
public static final MessageReference FUNC_RETURN_TYPE_ENTITY_NOT_FOUND
GENERAL
public static final MessageReference GENERAL
INNER_EXCEPTION
public static final MessageReference INNER_EXCEPTION
FUNC_PARAM_NAME_EXP
public static final MessageReference FUNC_PARAM_NAME_EXP
REF_ATTRIBUTE_NOT_FOUND
public static final MessageReference REF_ATTRIBUTE_NOT_FOUND
throwException
public static ODataJPAModelException throwException(MessageReference messageReference,
Throwable e)
- The method creates an exception object of type ODataJPAModelException
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 ODataJPAModelException which can be then raised.
- Throws:
ODataJPARuntimeException
Copyright © 2013-2015 The Apache Software Foundation. All Rights Reserved.