MsalInteractionRequiredException Class

public class MsalInteractionRequiredException
extends MsalServiceException

This exception class is to inform developers that UI interaction is required for authentication to succeed.

Constructor Summary

Constructor Description
MsalInteractionRequiredException(ErrorResponse errorResponse, Map<String,List<String>> headerMap)

Initializes a new instance of the exception class

Method Summary

Modifier and Type Method and Description
InteractionRequiredExceptionReason reason()

Reason for the MsalInteractionRequiredException, enabling you to do more actions or inform the user depending on your scenario.

Methods inherited from MsalException

Methods inherited from MsalServiceException

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Methods inherited from java.lang.Throwable

java.lang.Throwable.addSuppressed java.lang.Throwable.fillInStackTrace java.lang.Throwable.getCause java.lang.Throwable.getLocalizedMessage java.lang.Throwable.getMessage java.lang.Throwable.getStackTrace java.lang.Throwable.getSuppressed java.lang.Throwable.initCause java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.setStackTrace java.lang.Throwable.toString

Constructor Details

MsalInteractionRequiredException

public MsalInteractionRequiredException(ErrorResponse errorResponse, Map<>> headerMap)

Initializes a new instance of the exception class

Parameters:

errorResponse - response object contain information about error returned by server
headerMap - http headers from the server response

Method Details

reason

public InteractionRequiredExceptionReason reason()

Reason for the MsalInteractionRequiredException, enabling you to do more actions or inform the user depending on your scenario.

Applies to