Class AuthorizationFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.microsoft.azure.servicebus.primitives.ServiceBusException
-
- com.microsoft.azure.servicebus.primitives.AuthorizationFailedException
-
- All Implemented Interfaces:
Serializable
public class AuthorizationFailedException extends ServiceBusException
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 is valid, and has correct execution right for the intended operations (e.g. Receive call will need Listen claim associated with the key/token).- Since:
- 1.0
- See Also:
- http://go.microsoft.com/fwlink/?LinkId=761101, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthorizationFailedException(String message)
Constructor for the exception class
-
Method Summary
-
Methods inherited from class com.microsoft.azure.servicebus.primitives.ServiceBusException
getContext, getIsTransient, getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AuthorizationFailedException
public AuthorizationFailedException(String message)
Constructor for the exception class- Parameters:
message
- the actual error message detailing the reason for the failure
-
-