RegExSearchPatternException

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from RegExException)

You used an invalid regular expression search pattern.

Properties
ErrorNumber Message
Methods
Stack StackFrames

Sample Code

The following exception block, placed at the end of a method that does a regular exception search, traps for invalid search patterns and prints the Message property of the RegExSearchPatternException. You could also use RegExException, since RegExSearchPatternException is subclassed from RegExException.

Exception err As RegExSearchPatternException
MsgBox(err.Message)

See Also

RegExException, RuntimeException classes Try, Exception statements, Catch statement.