|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the concrete sub-class of ODataProducerException
createdpublic interface ExceptionFactory<T extends ODataProducerException>
A factory for instances of a specific sub-class of ODataProducerException
.
Implementations of this interface are registered to and used by ODataProducerExceptions
.
When an OData consumer receives an error message returned by an OData producer, the parsed
OError
is wrapped into an exception and thrown via the consumer API.
ODataProducerExceptions.create(javax.ws.rs.core.Response.StatusType, OError)
Method Summary | |
---|---|
T |
createException(OError error)
Creates an instance of a specific sub-class of ODataProducerException . |
int |
getStatusCode()
Gets the status code this factory creates exception instances for. |
Method Detail |
---|
T createException(OError error)
ODataProducerException
.
error
- the OData error message to be wrapped into the returned exception
int getStatusCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |