Error handling
1. Exceptions
- NetworkException
- UnauthorizedException
- InternalServerErrorException
- GeneralErrorException
- NoNetworkException
- UnknownCalendarException
- UndeliveredDataWrapperException
2. Error handling
Generally, all exception can be caught in onError
method of Callback<T>
or EventListener
.
3. UndeliveredDataWrapperException
It's a specific type of exception which wraps other exceptions in the list above and contains undelivered data.
Undelivered data may appear when CalendarManager
was created with more than one account or when getEvents()
works with multiple calendars.
In these cases CalendarManager
makes multiple requests internally and part of these requests may be failed and part finish with success. Successful part passes with UndeliveredDataWrapperException
and should be handled as usual.