Skip to content

Instantly share code, notes, and snippets.

@deeperunderstanding
Last active November 18, 2019 11:11
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 deeperunderstanding/cb3a4b00bb2b0f91b186b346203fa0b7 to your computer and use it in GitHub Desktop.
Save deeperunderstanding/cb3a4b00bb2b0f91b186b346203fa0b7 to your computer and use it in GitHub Desktop.
fun main() {
val resultA : Try<String> = Try { "Hello, World" }
val resultB : Try<String> = Try { throw Exception("Not Today!") }
println(resultA)
println(resultB)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment