Exception: Net::IMAP::StringPrep::StringPrepError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/net/imap/stringprep.rb

Overview

ArgumentError raised when string is invalid for the stringprep profile.

Direct Known Subclasses

BidiStringError, ProhibitedCodepoint

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, string: nil, profile: nil) ⇒ StringPrepError

Returns a new instance of StringPrepError.



22
23
24
25
26
# File 'lib/net/imap/stringprep.rb', line 22

def initialize(*args, string: nil, profile: nil)
  @string  = -string.to_str  unless string.nil?
  @profile = -profile.to_str unless profile.nil?
  super(*args)
end

Instance Attribute Details

#profileObject (readonly)

Returns the value of attribute profile.



20
21
22
# File 'lib/net/imap/stringprep.rb', line 20

def profile
  @profile
end

#stringObject (readonly)

Returns the value of attribute string.



20
21
22
# File 'lib/net/imap/stringprep.rb', line 20

def string
  @string
end