01: /******************************************************************************
02: * jWebUnit project (http://jwebunit.sourceforge.net) *
03: * Distributed open-source, see full license under LICENCE.txt *
04: ******************************************************************************/package net.sourceforge.jwebunit.exception;
05:
06: import junit.framework.AssertionFailedError;
07:
08: /**
09: * A Javascript prompt was expected but was not thrown.
10: *
11: * @author Julien Henry
12: */
13: public class ExpectedJavascriptPromptException extends Exception {
14: /**
15: * Expected message in the prompt
16: */
17: private String message;
18:
19: public ExpectedJavascriptPromptException(String message) {
20: super ("A prompt was expected with message [" + message + "]");
21: this .message = message;
22: }
23:
24: /**
25: * Return the expected message in the prompt
26: */
27: public String getPromptMessage() {
28: return message;
29: }
30: }
|