Advertisement
Guest User

Untitled

a guest
Jul 20th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.23 KB | None | 0 0
  1. // NOTE Exception without filling StackTrace
  2. class LightException extends Exception("") {
  3.   override def fillInStackTrace(): Throwable = {
  4.     this
  5.   }
  6. }
  7.  
  8. object LightException {
  9.   def error: Nothing = throw new LightException
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement