Skip to content

Commit cc068fb

Browse files
noctellajenkins
authored andcommitted
finagle/finagle-core: Add message param to TooManyWaitersException
Problem It may be useful for users of `TooManyWaitersException` to include a message in the exception. Solution Add message param. Differential Revision: https://phabricator.twitter.biz/D1286004
1 parent f59447b commit cc068fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

finagle-core/src/main/scala/com/twitter/finagle/Exceptions.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ class CancelledRequestException(cause: Throwable) extends RequestException(cause
203203
* failed because too many requests are already waiting for a connection to
204204
* become available from a client's connection pool.
205205
*/
206-
class TooManyWaitersException extends RequestException with HasLogLevel {
206+
class TooManyWaitersException(message: String)
207+
extends RequestException(message, null)
208+
with HasLogLevel {
209+
def this() = this(null)
207210
def logLevel: Level = Level.DEBUG
208211
}
209212

0 commit comments

Comments
 (0)