package com.capgemini.reports.exceptions;

import com.capgemini.framework.teamcenter.exceptions.KurtException;

/** Custom error occurring when no connection could be set up to the ActiveDirectory (appli might not be in the same domain as AD?). */
public class NoConnectionToActiveDirectoryException extends KurtException {

    private static final long serialVersionUID = 8900355250902392135L;

    /**
     * Creates a custom {@link NoConnectionToActiveDirectoryException} wrapper around an exception thrown by the ActiveDirectory.
     * 
     * @param aMessage custom error message
     * @param anException original exception
     */
    public NoConnectionToActiveDirectoryException(final String aMessage, final Throwable anException) {
        super(aMessage, anException);
    }


    /**
     * Creates a custom {@link NoConnectionToActiveDirectoryException} exception when Active Directory connection could not be made.
     * 
     * @param aMessage custom error message
     */
    public NoConnectionToActiveDirectoryException(final String aMessage) {
        super(aMessage);
    }
}
