Skip to content

Commit

Permalink
Throwing runtime exceptions when minting fails
Browse files Browse the repository at this point in the history
  • Loading branch information
escowles committed May 15, 2014
1 parent c04d047 commit e3e21c9
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -167,9 +167,10 @@ public String mintPid() {
return responseToPid( EntityUtils.toString(resp.getEntity()) );
} catch ( IOException ex ) {
log.warn("Error minting pid from {}: {}", url, ex);
throw new RuntimeException("Error minting pid", ex);
} catch ( Exception ex ) {
log.warn("Error processing minter response", ex);
throw new RuntimeException("Error processing minter response", ex);
}
return null;
}
}

0 comments on commit e3e21c9

Please sign in to comment.