com.microsoft.tfs.core.checkinpolicies.events
Class PolicyLoadErrorEvent

java.lang.Object
  extended by com.microsoft.tfs.core.clients.CoreClientEvent
      extended by 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

Constructor Summary
PolicyLoadErrorEvent(EventSource source, PolicyEvaluator policyEvaluator, java.lang.Throwable error)
          Creates a PolicyLoadErrorEvent.
 
Method Summary
 java.lang.Throwable getError()
           
 PolicyEvaluator getPolicyLoader()
           
 
Methods inherited from class com.microsoft.tfs.core.clients.CoreClientEvent
getEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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.