Top Description Fields Constructors
java.util.concurrent

public Class CancellationException

extends IllegalStateException
Class Inheritance

Exception indicating that the result of a value-producing task, such as a FutureTask, cannot be retrieved because the task was cancelled.
Author
Doug Lea
Since
1.5

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
CancellationException()

Constructs a CancellationException with no detail message.

public
CancellationException(String
the detail message
message
)

Constructs a CancellationException with the specified detail message.

pack-priv
CancellationException(String
the detail message
message
,
CancellationException
the underlying cancellation exception
cause
)

Only intended for in-package usage.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IllegalStateException.serialVersionUID.

Constructor Detail

CancellationExceptionback to summary
public CancellationException()

Constructs a CancellationException with no detail message.

CancellationExceptionback to summary
public CancellationException(String message)

Constructs a CancellationException with the specified detail message.

Parameters
message:String

the detail message

CancellationExceptionback to summary
pack-priv CancellationException(String message, CancellationException cause)

Only intended for in-package usage. Constructs a CancellationException with the specified detail message and CancellationException cause.

Parameters
message:String

the detail message

cause:CancellationException

the underlying cancellation exception