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