/*
 * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/*
 * $URL: https://adc4110351.us.oracle.com/svn/spider/branches/cts/8.0/src/com/sun/ts/tests/jstl/common/tags/ThrowTag.java $ $LastChangedDate: 2011-04-15 11:32:31 -0700 (Fri, 15 Apr 2011) $
 */

package com.sun.ts.tests.jstl.common.tags;

import javax.servlet.jsp.tagext.TagSupport;
import javax.servlet.jsp.JspException;

/**
 * This tag simply throws a JspException when used
 */

public class ThrowTag extends TagSupport {

    /** Creates new ThrowTag */
    public ThrowTag() {
        super();
    }

/* 
 * public methods
 * ========================================================================
 */
    
    /**
     * The tag will throw a JspException when doEndTag() is called.
     * @throws JspException
     * @return int 
     */    
    public int doEndTag() throws JspException {
        throw new IllegalArgumentException();
    }
}
