PatternSyntaxException
| Kind of class: | class |
|---|---|
| Inherits from: | Exception < AbstractThrowable < Error |
| Author: | Igor Sadovskiy |
| Classpath: | org.as2lib.regexp.PatternSyntaxException |
| File last modified: | Friday, 09 September 2005, 18:31:34 |
Unchecked exception thrown to indicate a syntax error in a
regular-expression pattern.
regular-expression pattern.
Summary
Constructor
Class methods
Class methods inherited from AbstractThrowable
Instance methods
Instance methods inherited from AbstractThrowable
Constructor
PatternSyntaxException
function PatternSyntaxException (
description:String,
thrower:Pattern,
args:FunctionArguments)
Constructs a new instance of this class.
Parameters:
description:
A description of the error
thrower :
The erroneous Pattern's instance thrown exception
args :
Arguments of the function thrown exception
Instance methods
getDescription
function getDescription (
Void) : String
Retrieves the description of the error.
Returns:
The description of the error
getIndex
function getIndex (
Void) : Number
Retrieves the error index.
Returns:
The approximate index in the pattern of the error
getMessage
function getMessage (
Void) : String
Returns a multi-line string containing the description of the syntax
error and its index, the erroneous regular-expression pattern, and a
visual indication of the error index within the pattern.
error and its index, the erroneous regular-expression pattern, and a
visual indication of the error index within the pattern.
Returns:
The full detail message
getPattern
function getPattern (
Void) : String
Retrieves the erroneous regular-expression pattern.
Returns:
The erroneous pattern