com.microsoft.aad.adal
Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.microsoft.aad.adal.AuthenticationException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AuthenticationCancelError
public class AuthenticationException
- extends RuntimeException
ADAL exception.
- See Also:
- Serialized Form
mCode
protected ADALError mCode
AuthenticationException
public AuthenticationException()
- Constructs a new AuthenticationException.
AuthenticationException
public AuthenticationException(ADALError code)
- Constructs a new AuthenticationException with error code.
- Parameters:
code - ADALError
AuthenticationException
public AuthenticationException(ADALError code,
String details)
- Parameters:
code - Resource file related error code. Message will be derived
from resource with using app contextdetails - Details related to the error such as query string, request
info
AuthenticationException
public AuthenticationException(ADALError code,
String details,
Throwable throwable)
- Parameters:
code - Resource file related error code. Message will be derived
from resource with using app contextdetails - Details related to the error such as query string, request
infothrowable - Throwable
getCode
public ADALError getCode()
- Gets
ADALError code.
- Returns:
ADALError code
getMessage
public String getMessage()
- Overrides:
getMessage in class Throwable
getLocalizedMessage
public String getLocalizedMessage(android.content.Context context)
- Gets localized
ADALError code if provided by context.
- Parameters:
context - Context
- Returns:
- Error message
Copyright © 2003–2015. All rights reserved.