SHARE
TWEET

Untitled

a guest Oct 21st, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. trait ServingErrorSender extends Sender{
  2.  this: ServingError =>   // force to be mixed with a ServingError class, (look for 'see cake-pattern')  def send(): Unit = send(this)
  3.  override def send(event: ServingError): Unit = ""
  4. }
  5.  
  6. trait ServingError extends ServingErrorSender{
  7.  val code: Int
  8.  val description: String
  9.  val content: String
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top