UnexpectedJavascriptAlertException.java :  » Testing » jwebunit » net » sourceforge » jwebunit » exception » Java Open Source

Java Open Source » Testing » jwebunit 
jwebunit » net » sourceforge » jwebunit » exception » UnexpectedJavascriptAlertException.java
/******************************************************************************
 * jWebUnit project (http://jwebunit.sourceforge.net)                         *
 * Distributed open-source, see full license under LICENCE.txt                *
 ******************************************************************************/
package net.sourceforge.jwebunit.exception;

/**
 * A Javascript alert was displayed but not expected.
 * 
 * @author Julien Henry
 */
public class UnexpectedJavascriptAlertException extends RuntimeException {

    /**
     * Message in the unexpected alert
     */
    private String message;

    public UnexpectedJavascriptAlertException(String message) {
        super("An unexpected alert with message [" + message
                + "] was displayed");
        this.message = message;
    }

    /**
     * Return the message in the unexpected alert
     */
    public String getAlertMessage() {
        return message;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.