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/throws

throws

scala.throws
finalclassthrows[T <:Throwable](cause:String = ...) extendsStaticAnnotation

Annotation for specifying the exceptions thrown by a method. For example:

class Reader(fname: String) { private val in = new BufferedReader(new FileReader(fname)) @throws[IOException]("if the file doesn't exist") def read() = in.read()}

Attributes

Source
throws.scala
Graph
Supertypes
classObject
traitMatchable
classAny

Members list

Value members

Constructors

defthis(clazz:Class[T])

Attributes

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

[8]ページ先頭

©2009-2025 Movatter.jp