Performing a invoke Operation and Handling Possible Exceptions

Before sending an invoke operation, the requestor must be set up to catch potential exceptions. In this example, we'll demonstrate that if we send a time in the past, the provider will throw the "bad time" exception.

How It Works

Exceptions thrown by the provider can be handled with DOFProviderException, and exceptions thrown by the library are handled by DOFErrorException and its sub classes.