net.windward.tags
Class TagException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--net.windward.tags.TagException
All Implemented Interfaces:
java.io.Serializable

public class TagException
extends java.lang.Exception

If the template has too many or too few tags. this exception.

Version:
1.0 June 19, 2002
See Also:
Serialized Form

Field Summary
static int BAD_BITMAP
          The cdata bitmap is bad.
static int BAD_FILE
          The specified file's contents were bad.
static int BAD_HTML
          Parse error on html data.
static int ILLEGAL_ATTRIBUTE_NAME
          Attribute var or varStatus has a ${} around it.
static int ILLEGAL_FILE_TYPE
          The included file had an unrecognized extension.
static int ILLEGAL_LOCATION
          A matrix, row, or column tag is in an illegal location.
static int IN_TABLE
          This tag cannot be inside a table.
static int MISSING_END
          There was an if/while with no end.
static int MISSING_FILE
          The specified included file could not be found.
static int MULTIPLE_NODE_VALUES
          More than 1 node attribute was defined.
static int NESTED_LINK
          Nested link
static int NO_NODE_VALUE
          There was no node for the tag - a value is required.
static int NOT_SELF_CONTAINED
          Command is not self contained.
static int SELF_CONTAINED
          Command is self contained.
static int UNEXPECTED_ELSE
          There was an else with no matching if before it.
static int UNEXPECTED_END
          There was an end with no matching if/while before it.
static int UNKNOWN_TAG
          Unknown tag.
static int WRONG_ATTRIBUTES
          Missing or extra attributes.
 
Constructor Summary
TagException(int cause)
          Create a TagException object.
TagException(int cause, int level)
          Create a TagException object.
TagException(int cause, java.lang.String txt)
          Create a TagException object.
 
Method Summary
 java.lang.String get_Message()
           
 java.lang.String getMessage()
          Return the exception as a String.
 int getType()
          Return the type of node exception.
 void setMessage(java.lang.String message)
          Set the tag command that this had trouble with or a similiar message.
 void setParaText(java.lang.String paraText)
          Set the text of the paragraph this occured in.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BAD_BITMAP

public static final int BAD_BITMAP
The cdata bitmap is bad.

BAD_FILE

public static final int BAD_FILE
The specified file's contents were bad.

BAD_HTML

public static final int BAD_HTML
Parse error on html data.

ILLEGAL_ATTRIBUTE_NAME

public static final int ILLEGAL_ATTRIBUTE_NAME
Attribute var or varStatus has a ${} around it.

ILLEGAL_FILE_TYPE

public static final int ILLEGAL_FILE_TYPE
The included file had an unrecognized extension.

MISSING_END

public static final int MISSING_END
There was an if/while with no end.

MISSING_FILE

public static final int MISSING_FILE
The specified included file could not be found.

NESTED_LINK

public static final int NESTED_LINK
Nested link

NOT_SELF_CONTAINED

public static final int NOT_SELF_CONTAINED
Command is not self contained. This command cannot have text between an opening and closing nodes. It must be a single node.

SELF_CONTAINED

public static final int SELF_CONTAINED
Command is self contained. This command must have text between it's opening and closing nodes.

UNEXPECTED_ELSE

public static final int UNEXPECTED_ELSE
There was an else with no matching if before it.

UNEXPECTED_END

public static final int UNEXPECTED_END
There was an end with no matching if/while before it.

UNKNOWN_TAG

public static final int UNKNOWN_TAG
Unknown tag.

WRONG_ATTRIBUTES

public static final int WRONG_ATTRIBUTES
Missing or extra attributes.

IN_TABLE

public static final int IN_TABLE
This tag cannot be inside a table.

NO_NODE_VALUE

public static final int NO_NODE_VALUE
There was no node for the tag - a value is required.

MULTIPLE_NODE_VALUES

public static final int MULTIPLE_NODE_VALUES
More than 1 node attribute was defined.

ILLEGAL_LOCATION

public static final int ILLEGAL_LOCATION
A matrix, row, or column tag is in an illegal location.
Constructor Detail

TagException

public TagException(int cause)
Create a TagException object.
Parameters:
cause - One of the static int's in this class.

TagException

public TagException(int cause,
                    java.lang.String txt)
Create a TagException object. Hit an orphan <end:>.
Parameters:
cause - One of the static int's in this class.
txt - Information about the exception.

TagException

public TagException(int cause,
                    int level)
Create a TagException object. Missing one/several <end:>s.
Parameters:
cause - One of the static int's in this class.
level - The number of missing end's.
Method Detail

setMessage

public void setMessage(java.lang.String message)
Set the tag command that this had trouble with or a similiar message.
Parameters:
message - The message for this exception

setParaText

public void setParaText(java.lang.String paraText)
Set the text of the paragraph this occured in.
Parameters:
paraText - The paragraph text.

getType

public int getType()
Return the type of node exception.
Returns:
Returns one of the static final ints describing the exception sub-type.

getMessage

public java.lang.String getMessage()
Return the exception as a String.
Overrides:
getMessage in class java.lang.Throwable
Returns:
The exception, including the number of missing <end:>s (if the problem is too few)

get_Message

public java.lang.String get_Message()


Copyright © 2002 - 2008 Windward Reports - All Rights Reserved. java reporting software