class Mongo::Error::FailedStringPrepValidation

This exception is raised when stringprep validation fails, such as due to

character being present or bidirection data being invalid.

@since 2.6.0

Constants

INVALID_BIDIRECTIONAL

The error message describing failed bidi validation.

@since 2.6.0

PROHIBITED_CHARACTER

The error message describing the discovery of a prohibited character.

@since 2.6.0

UNABLE_TO_NORMALIZE

The error message describing that stringprep normalization can't be done on Ruby versions below 2.2.0.

@since 2.6.0

Public Class Methods

new(msg) click to toggle source

Create the new exception.

@example Create the new exception.

Mongo::Error::FailedStringPrepValidation.new(
  Mongo::Error::FailedStringPrepValidation::PROHIBITED_CHARACTER)

@param [ String ] msg The error message describing how the validation failed.

@since 2.6.0

Calls superclass method Mongo::Error::new
# File lib/mongo/error/failed_stringprep_validation.rb, line 33
def initialize(msg)
  super(msg)
end