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

Commit

Permalink
brittspace.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robey Pointer committed Feb 17, 2010
1 parent 6fd1a0f commit 927d4e3
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -3,6 +3,7 @@ package com.twitter.querulous.query
import java.sql.{SQLException, Connection}
import com.twitter.xrayspecs.Duration


class SqlTimeoutException extends SQLException("Query timeout")

class TimingOutQueryFactory(queryFactory: QueryFactory, timeout: Duration) extends QueryFactory {
Expand All @@ -28,7 +29,7 @@ class TimingOutQuery(query: Query, timeout: Duration) extends QueryProxy(query)
cancel()
}
} catch {
case e: TimeoutException =>
case e: TimeoutException =>
throw new SqlTimeoutException
}
}
Expand Down

0 comments on commit 927d4e3

Please sign in to comment.