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

pack-priv Class OptionException

extends Exception
Class Inheritance
Known Direct Subclasses
jdk.javadoc.internal.tool.IllegalOptionValue
Imports
jdk.javadoc.internal.tool.Main.Result

Provides a general mechanism for the javadoc tool to indicate an option decoding issue.

Field Summary

Modifier and TypeField and Description
public final Runnable
m

public final String
public final Main.Result
private static final long

Constructor Summary

AccessConstructor and Description
public
OptionException(Main.Result
the exit code
result
,
Runnable
the method to invoke
method
,
String
the detailed message
message
)

Constructs an object with a result, runnable and a message to be printed out by the catcher.

public
OptionException(Main.Result
the exit code
result
,
Runnable
the method to invoke
method
)

Constructs an object with a result and a runnable.

Field Detail

mback to summary
public final Runnable m
Annotations
@SuppressWarnings:serial
messageback to summary
public final String message
resultback to summary
public final Main.Result result
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

OptionExceptionback to summary
public OptionException(Main.Result result, Runnable method, String message)

Constructs an object with a result, runnable and a message to be printed out by the catcher. The runnable can be invoked by the catcher to display the usage text.

Parameters
result:Main.Result

the exit code

method:Runnable

the method to invoke

message:String

the detailed message

OptionExceptionback to summary
public OptionException(Main.Result result, Runnable method)

Constructs an object with a result and a runnable. The runnable can be invoked by the catcher to display the usage text.

Parameters
result:Main.Result

the exit code

method:Runnable

the method to invoke