Interface ODataServiceErrorDetails

All Known Implementing Classes:
ODataServiceError

public interface ODataServiceErrorDetails
Interface that resembles which information OData errors must contain and which information is optional.
  • Method Summary

    Modifier and Type
    Method
    Description
    Language independent OData error response code.
    Language dependent OData error message.
    io.vavr.control.Option<String>
    Optional OData service specific hint for origin of the error.
  • Method Details

    • getODataCode

      @Nonnull String getODataCode()
      Language independent OData error response code.
      Returns:
      The OData error code.
    • getODataMessage

      @Nonnull String getODataMessage()
      Language dependent OData error message. The language used is reflected by the "Content-Language" header in the HTTP response.
      Returns:
      The OData error message.
    • getTarget

      @Nonnull io.vavr.control.Option<String> getTarget()
      Optional OData service specific hint for origin of the error.
      Returns:
      An optional target.