Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // NOTE Exception without filling StackTrace
- class LightException extends Exception("") {
- override def fillInStackTrace(): Throwable = {
- this
- }
- }
- object LightException {
- def error: Nothing = throw new LightException
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement