|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| TagValidationException.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 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 | 0 |
public TagValidationException( String message, XTag tag )
|
| 20 |
{
|
|
| 21 | 0 |
super( message );
|
| 22 | 0 |
_tag = tag; |
| 23 |
} |
|
| 24 |
|
|
| 25 | 0 |
public final XTag getTag()
|
| 26 |
{
|
|
| 27 | 0 |
return _tag;
|
| 28 |
} |
|
| 29 |
|
|
| 30 | 0 |
public String getMessage()
|
| 31 |
{
|
|
| 32 | 0 |
return getMessage() + ":" + getTag().getInfo(); |
| 33 |
} |
|
| 34 |
} |
|
| 35 |
|
|
||||||||||