RegExException
classin packageklyn.regex
public class RegExException extends 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
propertyInherited Properties from Exception: message
propertyInherited 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
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml