case class ServerErrorMonitor(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.
val client = Mysql.client .withMonitor(ServerErrorMonitor(Seq(<code>)))
- Alphabetic
- By Inheritance
- ServerErrorMonitor
- Serializable
- Product
- Equals
- Monitor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen(next: Monitor): Monitor
- Definition Classes
- Monitor
- def apply(f: => Unit): Unit
- Definition Classes
- Monitor
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def handle(exc: Throwable): Boolean
- Definition Classes
- ServerErrorMonitor → Monitor
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def orElse(next: Monitor): Monitor
- Definition Classes
- Monitor
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val suppressedCodes: Seq[Short]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tryHandle(exc: Throwable): Try[Unit]
- Attributes
- protected
- Definition Classes
- Monitor
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()