SHARE
TWEET

Untitled

a guest Oct 21st, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. object ServingError{
  2. // we are adding a method modification content method, to be used by the modification traits def modifyContent(error: ServingError, content: String): ServingError = {
  3. error match {
  4. case f: FatalError => FatalError(exceptionCause = f.exceptionCause, content = content)
  5. case i: InvalidRequestError => InvalidRequestError(i.paramName, i.paramValue, content = content)
  6. }
  7. }
  8. }
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