You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Archana Rai (JIRA)" <ji...@apache.org> on 2018/04/11 08:20:00 UTC

[jira] [Resolved] (OLINGO-1256) Error code improvements

     [ https://issues.apache.org/jira/browse/OLINGO-1256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Archana Rai resolved OLINGO-1256.
---------------------------------
    Resolution: Fixed

The code has been checked in : [https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=a93d49c1aa3fb57aa4aa3914b6b2aefe913fd067.] Hence resolving this ticket.

> Error code improvements 
> ------------------------
>
>                 Key: OLINGO-1256
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1256
>             Project: Olingo
>          Issue Type: Improvement
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.5.0
>            Reporter: Archana Rai
>            Priority: Minor
>             Fix For: (Java) V4 4.5.0
>
>
> The createServerErrorObject(final ODataLibraryException e, final Locale requestedLocale) API takes the parameter ODataLibraryException as parameter. We already know that the SerializerException and DeserializerException should result in 400 bad request. Still in the implementation we just add 500 Internal server error. We can set the status code as 400 when the type of exception is related to serialization or deserialization. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)