Exception: Net::IMAP::StringPrep::ProhibitedCodepoint
- Inherits:
-
StringPrepError
- Object
- ArgumentError
- StringPrepError
- Net::IMAP::StringPrep::ProhibitedCodepoint
- Defined in:
- lib/net/imap/stringprep.rb
Overview
StringPrepError raised when string
contains a codepoint prohibited by table
.
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Attributes inherited from StringPrepError
Instance Method Summary collapse
-
#initialize(table, *args, **kwargs) ⇒ ProhibitedCodepoint
constructor
A new instance of ProhibitedCodepoint.
Constructor Details
#initialize(table, *args, **kwargs) ⇒ ProhibitedCodepoint
Returns a new instance of ProhibitedCodepoint.
34 35 36 37 38 39 40 |
# File 'lib/net/imap/stringprep.rb', line 34 def initialize(table, *args, **kwargs) @table = table details = (title = Tables::TITLES[table]) ? "%s [%s]" % [title, table] : table = "String contains a prohibited codepoint: %s" % [details] super(, *args, **kwargs) end |
Instance Attribute Details
#table ⇒ Object (readonly)
Returns the value of attribute table.
32 33 34 |
# File 'lib/net/imap/stringprep.rb', line 32 def table @table end |