com.microsoft.tfs.core.checkinpolicies.events
Class PolicyLoadErrorEvent
java.lang.Object
com.microsoft.tfs.core.clients.CoreClientEvent
com.microsoft.tfs.core.checkinpolicies.events.PolicyLoadErrorEvent
public final class PolicyLoadErrorEvent
- extends CoreClientEvent
Event fired when a policy implementation failed to load. These events are
fired before the PolicyEvaluatorStateChangedEvent
is fired.
Because events are fired outside of synchronization in
PolicyEvaluator
, the PolicyEvaluator
's state may not still be
PolicyEvaluatorState.POLICIES_LOAD_ERROR
when a listener queries it.
- Since:
- TEE-SDK-10.1
- Thread-safety:
- immutable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyLoadErrorEvent
public PolicyLoadErrorEvent(EventSource source,
PolicyEvaluator policyEvaluator,
java.lang.Throwable error)
- Creates a
PolicyLoadErrorEvent
.
- Parameters:
source
- the source of the change (must not be null
)policyEvaluator
- the evaluator where the error occurred (must not be
null
)error
- the error that caused the failure (must not be null
)
getPolicyLoader
public PolicyEvaluator getPolicyLoader()
- Returns:
- the
PolicyEvaluator
that encountered the error.
getError
public java.lang.Throwable getError()
- Returns:
- the error that caused the failure.
© 2015 Microsoft. All rights reserved.