public class CalendarException

  1. Object
  2. Throwable
  3. Exception
  4. CalendarException
Exception returned by asynchronous calendar operations.

Constructors

public CalendarException(CalendarError error, String message)
public CalendarException(CalendarError error, String message, Throwable cause)
public CalendarException(CalendarError error, String message, int responseCode, Throwable cause)
public CalendarException(CalendarError error, String message, int responseCode, String responseBody, Throwable cause)

Methods

public CalendarError getError()
public int getResponseCode()
public String getResponseBody()Returns the provider response body for an HTTP failure, if one was available.

Inherited methods

Constructor details

CalendarException

public CalendarException(CalendarError error, String message)

CalendarException

public CalendarException(CalendarError error, String message, Throwable cause)

CalendarException

public CalendarException(CalendarError error, String message, int responseCode, Throwable cause)

CalendarException

public CalendarException(CalendarError error, String message, int responseCode, String responseBody, Throwable cause)

Method details

getError

public CalendarError getError()

getResponseCode

public int getResponseCode()

getResponseBody

public String getResponseBody()
Returns the provider response body for an HTTP failure, if one was available. This is kept separate from the user-facing exception message.