All Downloads are FREE. Search and download functionalities are using the official Maven repository.

microsoft.exchange.webservices.data.AccountIsLockedException Maven / Gradle / Ivy

Go to download

The source came from http://archive.msdn.microsoft.com/ewsjavaapi Support for Maven has been added.

The newest version!
/**************************************************************************
 * copyright file="AccountIsLockedException.java" company="Microsoft"
 *     Copyright (c) Microsoft Corporation.  All rights reserved.
 * 
 * Defines the AccountIsLockedException.java.
 **************************************************************************/
package microsoft.exchange.webservices.data;

import java.net.URI;

/**
 * Represents an error that occurs when the account that is 
 * being accessed is locked and requires user interaction to be unlocked.
 */
public class AccountIsLockedException extends ServiceRemoteException {
	
	private URI accountUnlockUrl;


	/**
	 * Initializes a new instance of the AccountIsLockedException class.
	 * @param message 
	 * Error message text.
	 * @param accountUnlockUrl
	 * URL for client to visit to unlock account.
	 * @param innerException
	 */
    public AccountIsLockedException(String message, URI accountUnlockUrl, 
    		Exception innerException) {

        super(message, innerException);
        this.setAccountUnlockUrl(accountUnlockUrl);
    }    
    
    /**
     * Gets the URL of a web page where the user 
     * can navigate to unlock his or her account.
     */
    public URI getAccountUnlockUrl() {
        return accountUnlockUrl;
    }
    
    
    /**
     * Sets the URL of a web page where the 
     * user can navigate to unlock his or her account.
     */
    private void setAccountUnlockUrl(URI value) {
    	this.accountUnlockUrl = value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy