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 confirm was expected but was not thrown.
10: *
11: * @author Julien Henry
12: */
13: public class ExpectedJavascriptConfirmException extends Exception {
14:
15: /**
16: * Expected message in the confirm
17: */
18: private String message;
19:
20: public ExpectedJavascriptConfirmException(String message) {
21: super ("A confirm was expected with message [" + message + "]");
22: this .message = message;
23: }
24:
25: /**
26: * Return the expected message in the confirm
27: */
28: public String getConfirmMessage() {
29: return message;
30: }
31: }
|