Package com.aspectran.core.util.apon
Class AponSyntaxException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.aspectran.core.util.apon.AponException
-
- com.aspectran.core.util.apon.AponParseException
-
- com.aspectran.core.util.apon.AponSyntaxException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
InvalidParameterException,MissingClosingBracketException
public class AponSyntaxException extends AponParseException
This exception is raised when attempting to read (or write) a malformed APON element.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AponSyntaxException()Simple constructor.AponSyntaxException(int lineNumber, java.lang.String line, java.lang.String tline, java.lang.String msg)Constructor to create exception with a message.AponSyntaxException(java.lang.String msg)Constructor to create exception with a message.AponSyntaxException(java.lang.String msg, java.lang.Throwable cause)Constructor to create exception to wrap another exception and pass a message.AponSyntaxException(java.lang.Throwable cause)Constructor to create exception to wrap another exception.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static java.lang.StringcreateMessage(int lineNumber, java.lang.String line, java.lang.String tline, java.lang.String msg)Create a detail message.
-
-
-
Constructor Detail
-
AponSyntaxException
public AponSyntaxException()
Simple constructor.
-
AponSyntaxException
public AponSyntaxException(java.lang.String msg)
Constructor to create exception with a message.- Parameters:
msg- a message to associate with the exception
-
AponSyntaxException
public AponSyntaxException(int lineNumber, java.lang.String line, java.lang.String tline, java.lang.String msg)Constructor to create exception with a message.- Parameters:
lineNumber- the line numberline- the character linetline- the trimmed character linemsg- a message to associate with the exception
-
AponSyntaxException
public AponSyntaxException(java.lang.Throwable cause)
Constructor to create exception to wrap another exception.- Parameters:
cause- the real cause of the exception
-
AponSyntaxException
public AponSyntaxException(java.lang.String msg, java.lang.Throwable cause)Constructor to create exception to wrap another exception and pass a message.- Parameters:
msg- the messagecause- the real cause of the exception
-
-
Method Detail
-
createMessage
protected static java.lang.String createMessage(int lineNumber, java.lang.String line, java.lang.String tline, java.lang.String msg)Create a detail message.- Parameters:
lineNumber- the line numberline- the character linetline- the trimmed character linemsg- the message- Returns:
- the detail message
-
-