Class BatchErrorException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    CreateTasksErrorException

    public class BatchErrorException
    extends com.microsoft.rest.RestException
    Exception thrown for an invalid response with BatchError information.
    See Also:
    Serialized Form
    • Constructor Detail

      • BatchErrorException

        public BatchErrorException​(String message,
                                   retrofit2.Response<okhttp3.ResponseBody> response)
        Initializes a new instance of the BatchErrorException class.
        Parameters:
        message - the exception message or the response content if a message is not available
        response - the HTTP response
      • BatchErrorException

        public BatchErrorException​(String message,
                                   retrofit2.Response<okhttp3.ResponseBody> response,
                                   BatchError body)
        Initializes a new instance of the BatchErrorException class.
        Parameters:
        message - the exception message or the response content if a message is not available
        response - the HTTP response
        body - the deserialized response body
    • Method Detail

      • body

        public BatchError body()
        Overrides:
        body in class com.microsoft.rest.RestException