RegExException
class in package klyn.regex

    public class RegExException extends SyntaxError:

Object
└ Exception
└ SyntaxError
└ RegExException

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.

Example

    import klyn.regex

    try:
    RegEx("[")
    catch error as RegExException:
    print(error.message)

Inherited Properties
property Inherited Properties from Exception: message
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | RegExException `RegExException(message as String = "Invalid regular expression"):` | Creates a regular-expression exception.

Inherited Methods
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml