Reimplement the exception handling as a subclass RDFHandlerException.
Code tidy.