Performing a get Operation and Handling Possible Exceptions

What happens when a get operation throws an exception? All get requests need to be able to handle exceptions. Exceptions thrown by the provider can be caught with the DOFProviderException; exceptions thrown by the library are DOFErrorException and its subclasses.

How It Works

The get operation can fail for several different reason. The DOFException is a parent class of all exceptions.

The DOFErrorExceptions are exceptions the library can throw. These exceptions have specific meaning and causes. For example, a timeout exception means the operation was not completed within the timeout period.