Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1494

OData V2: Serialize error details

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • odata2-core
    • None

    Description

      ODataErrorContext does not have an API using which the error response can include inner error details. 2 new API's are added

      public Collection<ODataErrorContext> getErrorDetails()

      { return errorDetails; }

      public void setErrorDetails(Collection<ODataErrorContext> errorDetails)

      { this.errorDetails = errorDetails; }

      Also a method is added to ContentTypeBasedEntityProvider class so that error responses having inner error details can be serialized

      ODataResponse writeErrorDocument(ODataErrorContext context);

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramyav Ramya Vasanth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: