123456789_123456789_123456789_123456789_123456789_

Exception: Net::IMAP::SASL::ProhibitedCodepoint

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, StringPrepError, ArgumentError
Instance Chain:
self, StringPrepError, ArgumentError
Inherits: Net::IMAP::SASL::StringPrepError
Defined in: lib/net/imap/sasl.rb

Overview

StringPrepError raised when string contains a codepoint prohibited by #table.

Class Method Summary

Instance Attribute Summary

StringPrepError - Inherited

Constructor Details

.new(table, *args, **kwargs) ⇒ ProhibitedCodepoint

[ GitHub ]

  
# File 'lib/net/imap/sasl.rb', line 48

def initialize(table, *args, **kwargs)
  @table = -table.to_str
  details = (title = StringPrep::TABLE_TITLES[table]) ?
    "%s [%s]" % [title, table] : table
  message = "String contains a prohibited codepoint: %s" % [details]
  super(message, *args, **kwargs)
end

Instance Attribute Details

#table (readonly)

[ GitHub ]

  
# File 'lib/net/imap/sasl.rb', line 46

attr_reader :table