APIdia Launch Partner
Top Description Fields Constructors
jdk.javadoc.internal.tool

pack-priv Class ToolException

extends Exception
Class Inheritance
Imports
jdk.javadoc.internal.tool.Main.Result

Provides a mechanism for the javadoc tool to terminate execution. This class is constructed with a result and an error message, that can be printed out before termination, a cause can also be wrapped to supply extended information about the exception.

Field Summary

Modifier and TypeField and Description
pack-priv final String
pack-priv final Main.Result
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
ToolException(Main.Result
the exit code
result
,
String
the detailed message
message
)

Constructs an object containing a result and a message to be printed out by the catcher.

pack-priv
ToolException(Main.Result
the exit code
result
,
String
the detailed message
message
,
Throwable
the underlying cause
cause
)

Constructs an object containing a result, a messages and an underlying cause.

Field Detail

messageback to summary
pack-priv final String message
resultback to summary
pack-priv final Main.Result result
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

ToolExceptionback to summary
pack-priv ToolException(Main.Result result, String message)

Constructs an object containing a result and a message to be printed out by the catcher.

Parameters
result:Main.Result

the exit code

message:String

the detailed message

ToolExceptionback to summary
pack-priv ToolException(Main.Result result, String message, Throwable cause)

Constructs an object containing a result, a messages and an underlying cause.

Parameters
result:Main.Result

the exit code

message:String

the detailed message

cause:Throwable

the underlying cause