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

package com.microsoft.aad.msal4j;

import lombok.Getter;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

/**
 * This exception class is to inform developers that UI interaction is required for authentication
 * to succeed.
 */
public class MsalInteractionRequiredException extends MsalServiceException{

    @Accessors(fluent = true)
    @Getter
    private ServiceExceptionClassification classification;

    public MsalInteractionRequiredException(
            ErrorResponse errorResponse,
            Map<String,List<String>> headerMap) {
        super(errorResponse, headerMap);

        classification = ServiceExceptionClassification.fromSubErrorString(errorResponse.subError);
    }
}

@@ -439,105 +439,492 @@
     
-@Accessors(fluent = true)%0A    @Getter%0A    private ServiceExceptionClassification classification;%0A
+/**%0A     * Classification of the conditional access error, enabling you to do more actions or inform the%0A     * user depending on your scenario.%0A     */%0A    @Accessors(fluent = true)%0A    @Getter%0A    private ServiceExceptionClassification classification;%0A%0A    /**%0A     * Initializes a new instance of the exception class%0A     * @param errorResponse response object contain information about error returned by server%0A     * @param headerMap http headers from the server response%0A     */
 %0A   

Add comments to MsalInteractionRequiredException