View Javadoc

    1   /*
    2    * Copyright (c) 2001-2003 The XDoclet team
    3    * All rights reserved.
    4    */
    5   package xjavadoc;
    6
    7   /***
    8    * This exception will be thrown if a tag is misnamed or has bad content. This
    9    * exception is a RuntimeException, in order to not break the existing API.
    10   *
    11   * @author    Aslak Hellesøy
    12   * @created   9. februar 2003
    13   * @version   $Revision: 1.4 $
    14   */
    15  public class TagValidationException extends RuntimeException
    16  {
    17  	private XTag       _tag;
    18
    19  	public TagValidationException( String message, XTag tag )
    20  	{
    21          super( message );
    22  		_tag = tag;
    23  	}
    24
    25  	public final XTag getTag()
    26  	{
    27  		return _tag;
    28  	}
    29
    30      public String getMessage()
    31      {
    32          return getMessage() + ":" + getTag().getInfo();
    33      }
    34  }