case classServerErrorMonitor(suppressedCodes: Seq[Short]) extends Monitor with Product with Serializable
ServerErrorMonitor is a com.twitter.util.Monitor that specifically handles mysql ServerErrors
in a less verbose way then com.twitter.finagle.util.DefaultMonitor.
By default it will log an info statement with details about the ServerError and encourage end
users to explicitly handle or rescue the ServerError in application code, and then suppress
the logging.
Specific error codes can be suppressed, with the intention being that this happens when application
code is explicitly dealing with that ServerError variant.
Example:
val client = Mysql.client
.withMonitor(ServerErrorMonitor(Seq(<code>)))
ServerErrorMonitor is a com.twitter.util.Monitor that specifically handles mysql ServerErrors in a less verbose way then com.twitter.finagle.util.DefaultMonitor.
By default it will log an info statement with details about the ServerError and encourage end users to explicitly
handle
orrescue
the ServerError in application code, and then suppress the logging.Specific error codes can be suppressed, with the intention being that this happens when application code is explicitly dealing with that ServerError variant.