com.microsoft.tfs.core.checkinpolicies
Class PolicyLoaderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.microsoft.tfs.core.exceptions.TECoreException
                  extended by com.microsoft.tfs.core.exceptions.TEClientException
                      extended by com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException
                          extended by com.microsoft.tfs.core.checkinpolicies.PolicyLoaderException
All Implemented Interfaces:
java.io.Serializable

public class PolicyLoaderException
extends VersionControlException

Thrown when a PolicyLoader encounters a problem.

See Also:
Serialized Form
Since:
TEE-SDK-10.1
Thread-safety:
thread-safe

Constructor Summary
PolicyLoaderException(java.lang.String message, PolicyType policyType)
          Creates a PolicyLoaderException with detailed information and the PolicyType that could not be loaded.
PolicyLoaderException(java.lang.String message, java.lang.Throwable cause, PolicyType policyType)
          Creates a PolicyLoaderException with detailed information and the PolicyType that could not be loaded.
PolicyLoaderException(java.lang.Throwable cause, PolicyType policyType)
          Creates a PolicyLoaderException with detailed information and the PolicyType that could not be loaded.
 
Method Summary
 PolicyType getPolicyType()
           
 
Methods inherited from class com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException
getProperties, setProperties
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolicyLoaderException

public PolicyLoaderException(java.lang.String message,
                             java.lang.Throwable cause,
                             PolicyType policyType)
Creates a PolicyLoaderException with detailed information and the PolicyType that could not be loaded.

Parameters:
message - the message
cause - the cause
policyType - the policy type that could not be loaded (must not be null)

PolicyLoaderException

public PolicyLoaderException(java.lang.String message,
                             PolicyType policyType)
Creates a PolicyLoaderException with detailed information and the PolicyType that could not be loaded.

Parameters:
message - the message
policyType - the policy type that could not be loaded (must not be null)

PolicyLoaderException

public PolicyLoaderException(java.lang.Throwable cause,
                             PolicyType policyType)
Creates a PolicyLoaderException with detailed information and the PolicyType that could not be loaded.

Parameters:
cause - the cause
policyType - the policy type that could not be loaded (must not be null)
Method Detail

getPolicyType

public PolicyType getPolicyType()
Returns:
the PolicyType that failed to load. May be null if the error wasn't caused by a specific policy.


© 2015 Microsoft. All rights reserved.