Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.util/Try

Try

scala.util.Try
See theTry companion class
objectTry

Attributes

Companion
class
Source
Try.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
Try.type

Members list

Value members

Concrete methods

defapply[T](r:=>T):Try[T]

Constructs aTry using the by-name parameter as a result value.

Constructs aTry using the by-name parameter as a result value.

The evaluation ofr is attempted once.

Any non-fatal exception is caught and results in aFailure that holds the exception.

Value parameters

r

the result value to compute

Attributes

Returns

the result of evaluating the value, as aSuccess orFailure

Source
Try.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp