Skip to content

Instantly share code, notes, and snippets.

@daiksy
Last active December 19, 2015 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daiksy/5972013 to your computer and use it in GitHub Desktop.
Save daiksy/5972013 to your computer and use it in GitHub Desktop.
ScalaでRuntimeExceptinの派生
class MyException(message: String, cause: Throwable) extends RuntimeException(message, cause) {
def this() = this(null, null)
def this(message: String) = this(message, null)
def this(cause: Throwable) = this(null, cause)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment