Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement