? CoordinationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osgi.service.coordinator.CoordinationException
- ????????:
Serializable
Unchecked exception which may be thrown by a Coordinator implementation.
- ????:
-
????
????????????static final int
The Coordination has already terminated normally.static final int
The Coordination was already on a thread's thread local Coordination stack.static final int
Registering a Participant with a Coordination would have resulted in a deadlock.static final int
The Coordination has terminated as a failure withCoordination.fail(Throwable)
.static final int
The current thread was interrupted while waiting to register a Participant with a Coordination.static final int
The Coordination has partially ended.static final int
Unknown reason for this exception.static final int
The Coordination cannot be ended by the calling thread since the Coordination is on the thread local Coordination stack of another thread. -
?????
????????CoordinationException
(String message, Coordination coordination, int type) Create a new Coordination Exception.CoordinationException
(String message, Coordination coordination, int type, Throwable cause) Create a new Coordination Exception with a cause. -
????
??????????long
getId()
Returns the id of theCoordination
associated with this exception.getName()
Returns the name of theCoordination
associated with this exception.int
getType()
Returns the type for this exception.
-
??????
-
UNKNOWN
public static final int UNKNOWNUnknown reason for this exception.- ????:
-
DEADLOCK_DETECTED
public static final int DEADLOCK_DETECTEDRegistering a Participant with a Coordination would have resulted in a deadlock.- ????:
-
FAILED
public static final int FAILEDThe Coordination has terminated as a failure withCoordination.fail(Throwable)
. When this exception type is used, theThrowable.getCause()
method must return a non-null value.- ????:
-
PARTIALLY_ENDED
public static final int PARTIALLY_ENDEDThe Coordination has partially ended.- ????:
-
ALREADY_ENDED
public static final int ALREADY_ENDEDThe Coordination has already terminated normally.- ????:
-
ALREADY_PUSHED
public static final int ALREADY_PUSHEDThe Coordination was already on a thread's thread local Coordination stack.- ????:
-
LOCK_INTERRUPTED
public static final int LOCK_INTERRUPTEDThe current thread was interrupted while waiting to register a Participant with a Coordination.- ????:
-
WRONG_THREAD
public static final int WRONG_THREADThe Coordination cannot be ended by the calling thread since the Coordination is on the thread local Coordination stack of another thread.- ????:
-
-
???????
-
CoordinationException
Create a new Coordination Exception with a cause.- ??:
message
- The detail message for this exception.coordination
- The Coordination associated with this exception.cause
- The cause associated with this exception.type
- The type of this exception.- ??:
IllegalArgumentException
- If the specified type isFAILED
and the specified cause isnull
.
-
CoordinationException
Create a new Coordination Exception.- ??:
message
- The detail message for this exception.coordination
- The Coordination associated with this exception.type
- The type of this exception.- ??:
IllegalArgumentException
- If the specified type isFAILED
.
-
-
??????
-
getName
Returns the name of theCoordination
associated with this exception.- ??:
- The name of the Coordination associated with this exception or
"<>"
if no Coordination is associated with this exception.
-
getType
public int getType()Returns the type for this exception.- ??:
- The type of this exception.
-
getId
public long getId()Returns the id of theCoordination
associated with this exception.- ??:
- The id of the Coordination associated with this exception or
-1
if no Coordination is associated with this exception.
-