public class RegExException extends SyntaxError:
Exception raised when a regular expression is invalid or cannot be evaluated.
Native regular-expression errors are always converted to this Klyn exception and never escape through the runtime as C++ exceptions.
import klyn.regex
try:
RegEx("[")
catch error as RegExException:
print(error.message)| Modifier and Type | Member | Description |
|---|---|---|
| public | RegExExceptionRegExException(message as String = "Invalid regular expression"): |
Creates a regular-expression exception. |