Exception: Net::IMAP::StringPrep::StringPrepError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Net::IMAP::StringPrep::StringPrepError
- Defined in:
- lib/net/imap/stringprep.rb
Overview
ArgumentError raised when string
is invalid for the stringprep profile
.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#profile ⇒ Object
readonly
Returns the value of attribute profile.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(*args, string: nil, profile: nil) ⇒ StringPrepError
constructor
A new instance of StringPrepError.
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
#profile ⇒ Object (readonly)
Returns the value of attribute profile.
20 21 22 |
# File 'lib/net/imap/stringprep.rb', line 20 def profile @profile end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
20 21 22 |
# File 'lib/net/imap/stringprep.rb', line 20 def string @string end |