com.microsoft.aad.adal
Class AuthenticationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.microsoft.aad.adal.AuthenticationException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthenticationCancelError

public class AuthenticationException
extends RuntimeException

ADAL exception.

See Also:
Serialized Form

Field Summary
protected  ADALError mCode
           
 
Constructor Summary
AuthenticationException()
          Constructs a new AuthenticationException.
AuthenticationException(ADALError code)
          Constructs a new AuthenticationException with error code.
AuthenticationException(ADALError code, String details)
           
AuthenticationException(ADALError code, String details, Throwable throwable)
           
 
Method Summary
 ADALError getCode()
          Gets ADALError code.
 String getLocalizedMessage(android.content.Context context)
          Gets localized ADALError code if provided by context.
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mCode

protected ADALError mCode
Constructor Detail

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 context
details - 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 context
details - Details related to the error such as query string, request info
throwable - Throwable
Method Detail

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.