Added custom exceptions to the Nanopub DAO.