We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@throws tags do not appear to create clickable links to the named exception classes.
@throws
For example, consider this code snippet:
package dummy /** Dodgy exception. * * Thrown if something dodgy happens. */ class DodgyException extends Exception ("Something dodgy happened") /** Some dodgy object. */ object Dodgy { /** Some dodgy function. * * @throws dummy.DodgyException if something dodgy happens. */ def someDodgyFunction (): Unit = { // ... } }
Will result in the following Scaladoc snippet (approximate appearance):
def someDodgyFunction(): Unit Some dodgy function Exceptions thrown dummy.DodgyException if something dodgy happens
Note the that dummy.DodgyException is not a link!
dummy.DodgyException
I also tried, by analogy to the @see tag, the following:
@see
package dummy /** Dodgy exception. * * Thrown if something dodgy happens. */ class DodgyException extends Exception ("Something dodgy happened") /** Some dodgy object. */ object Dodgy { /** Some dodgy function. * * @throws [[dummy.DodgyException]] if something dodgy happens. */ def someDodgyFunction (): Unit = { // ... } }
using the link syntax around the exception name. However, this produces the following (approximate)output:
def someDodgyFunction(): Unit Some dodgy function. Exceptions thrown [[dummy.DodgyException]] if something dodgy happens
In this case, note that the double square brackets are retained.
For an example in the Scala API docs, refer to: scala.Option.get.
Is this correct behavior?
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-6626?orig=1 Reporter: Mike Allen (mja) Affected Versions: 2.9.2
Sorry, something went wrong.
@soc said: I think this should be fixed. I was working on throws-related stuff recently, I'll try to have a look at it.
@JamesIry said: 2.10.2 is about to be cut. Kicking down the road and un-assigning to foster work stealing.
@gourlaysama said: scala/scala#4089
gourlaysama
No branches or pull requests
@throws
tags do not appear to create clickable links to the named exception classes.For example, consider this code snippet:
Will result in the following Scaladoc snippet (approximate appearance):
Note the that
dummy.DodgyException
is not a link!I also tried, by analogy to the
@see
tag, the following:using the link syntax around the exception name. However, this produces the following (approximate)output:
In this case, note that the double square brackets are retained.
For an example in the Scala API docs, refer to: scala.Option.get.
Is this correct behavior?
The text was updated successfully, but these errors were encountered: