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

com.microsoft.azure.eventhubs.AuthorizationFailedException Maven / Gradle / Ivy

Go to download

Please note, a newer package azure-messaging-eventhubs for Azure Event Hubs is available at https://search.maven.org/artifact/com.azure/azure-messaging-eventhubs as of February 2020. While this package will continue to receive critical bug fixes, we strongly encourage you to upgrade. Read the migration guide at https://aka.ms/azsdk/java/migrate/eh for more details.

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.azure.eventhubs;

import java.util.concurrent.ScheduledExecutorService;

/**
 * Authorization failed exception is thrown when error is encountered during authorizing user's permission to run the intended operations.
 * When encountered this exception user should check whether the token/key provided in the connection string (e.g. one passed to
 * {@link EventHubClient#createFromConnectionString(String, ScheduledExecutorService)}) is valid, and has correct execution right for the intended operations (e.g.
 * Receive call will need Listen claim associated with the key/token).
 *
 * @see http://go.microsoft.com/fwlink/?LinkId=761101
 */
public class AuthorizationFailedException extends EventHubException {
    private static final long serialVersionUID = 5384872132102860710L;

    AuthorizationFailedException() {
        super(false);
    }

    /**
     * Constructor for the exception class
     *
     * @param message the actual error message detailing the reason for the failure
     */
    public AuthorizationFailedException(final String message) {
        super(false, message);
    }

    AuthorizationFailedException(final Throwable cause) {
        super(false, cause);
    }

    AuthorizationFailedException(final String message, final Throwable cause) {
        super(false, message, cause);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy