class BSON::Error::InvalidRegexpPattern

Exception raised when there is an invalid argument passed into the constructor of regexp object. This includes when the argument contains a null byte.