morgand 2003/01/25 23:53:57 Modified: jelly/jelly-tags/swt/src/java/org/apache/commons/jelly/tags/swt OnEventTag.java Log: converted swt taglib from Exception to JellyTagException Revision Changes Path 1.2 +5 -5 jakarta-commons-sandbox/jelly/jelly-tags/swt/src/java/org/apache/commons/jelly/tags/swt/OnEventTag.java Index: OnEventTag.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/jelly/jelly-tags/swt/src/java/org/apache/commons/jelly/tags/swt/OnEventTag.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- OnEventTag.java 6 Jan 2003 16:40:34 -0000 1.1 +++ OnEventTag.java 26 Jan 2003 07:53:57 -0000 1.2 @@ -61,7 +61,7 @@ */ package org.apache.commons.jelly.tags.swt; -import org.apache.commons.jelly.JellyException; +import org.apache.commons.jelly.JellyTagException; import org.apache.commons.jelly.MissingAttributeException; import org.apache.commons.jelly.TagSupport; import org.apache.commons.jelly.XMLOutput; @@ -97,7 +97,7 @@ /** * @see org.apache.commons.jelly.Tag#doTag(org.apache.commons.jelly.XMLOutput) */ - public void doTag(XMLOutput output) throws Exception { + public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { if (var == null) { throw new MissingAttributeException("var"); } @@ -107,13 +107,13 @@ Widget widget = getParentWidget(); if (widget == null) { - throw new JellyException("This tag must be nested within a widget tag"); + throw new JellyTagException("This tag must be nested within a widget tag"); } int eventType = getEventType(type); if (eventType == 0) { - throw new JellyException("No event type specified, could not understand: " + type); + throw new JellyTagException("No event type specified, could not understand: " + type); } this.output = output; @@ -183,7 +183,7 @@ * @param type is the String event type * @return the SWT integer event type */ - protected int getEventType(String type) throws Exception { + protected int getEventType(String type) throws JellyTagException { return SwtHelper.parseStyle(SWT.class, type, false); }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>