Package com.iizix.text
Class KStringParseException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- com.iizix.text.KStringException
- com.iizix.text.KStringParseException
 
 
 
 
- All Implemented Interfaces:
- java.io.Serializable
 - public class KStringParseException extends KStringException Exception class used for KString parsing errors.- Author:
- Christopher Mindus
- See Also:
- Serialized Form
 
- Constructor Summary- Constructors - Constructor - Description - KStringParseException(java.lang.String message, java.lang.String inputString, int parsePosition)Constructs a KString parse exception.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - java.lang.String- getFixedCharacterOutput()Formats a string that can be used by e.g.- java.lang.String- getInputString()Gets the input string that caused the error.- int- getParsePosition()Gets the parsing position where the error occurred.
 
- Constructor Detail- KStringParseException- public KStringParseException(java.lang.String message, java.lang.String inputString, int parsePosition)Constructs a KString parse exception.- Parameters:
- message- The message string.
- inputString- The HTML input string.
- parsePosition- The error position in the input string.
 
 
 - Method Detail- getParsePosition- public int getParsePosition() Gets the parsing position where the error occurred.- Returns:
- The position in the input string that caused the error.
 
 - getInputString- public java.lang.String getInputString() Gets the input string that caused the error.- Returns:
- The input string for the error.
 
 - getFixedCharacterOutput- public java.lang.String getFixedCharacterOutput() Formats a string that can be used by e.g. System.out to display the parse error. The output consists of two lines separated with the system line separator where the first line is the input string, the second line the indication to where the error is located.- Returns:
- A fixed format string consisting of two lines.