Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
ostrich more exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fizx committed Oct 18, 2010
1 parent b1fd3c4 commit 836bfd3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/scala/com/twitter/flockdb/EdgesService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,14 @@ class EdgesService(val nameServer: NameServer[shards.Shard],
try {
block
} catch {
case e: FlockException => throw(e)
case e: FlockException => {
Stats.incr(e.getClass.getName)
throw(e)
}
case e: com.twitter.gizzard.shards.ShardTimeoutException => countAndRethrow(e)
case e: com.twitter.gizzard.shards.ShardDatabaseTimeoutException => countAndRethrow(e)
case e: Throwable => {
Stats.incr("unknown-exceptions")
log.error(e, "Unhandled error in EdgesService")
throw(new FlockException(e.getMessage))
}
Expand Down

0 comments on commit 836bfd3

Please sign in to comment.