[Jspro-cvs] jsPro/debug debug.js,1.5,1.6
Brought to you by:
wigleys
|
From: <gat...@us...> - 2003-09-22 05:07:45
|
Update of /cvsroot/jspro/jsPro/debug
In directory sc8-pr-cvs1:/tmp/cvs-serv28960/debug
Modified Files:
debug.js
Log Message:
updated methods with new error IllegalValueException
Index: debug.js
===================================================================
RCS file: /cvsroot/jspro/jsPro/debug/debug.js,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** debug.js 22 Sep 2003 03:28:22 -0000 1.5
--- debug.js 22 Sep 2003 05:07:41 -0000 1.6
***************
*** 101,104 ****
--- 101,105 ----
* @return <code>null</code> if an exception is encountered
* @throws IllegalArgumentException
+ * @throws IllegalValueException
* @throws TypeMismatchException
* @throws UnknownException
***************
*** 120,123 ****
--- 121,128 ----
if ((typeof iMessageType != 'number') || (iMessageType.toString().indexOf('.') != -1)) {
throw vError = new TypeMismatchException('Debug.print', 'integer', typeof iMessageType);
+ }
+
+ if ((iMessageType != 0) && (iMessageType != 1)) {
+ throw vError = new IllegalValueException('Debug.print', 'iMessageType', '0 or 1', iMessageType);
}
|