123456789_123456789_123456789_123456789_123456789_

Exception: Net::IMAP::StringPrep::ProhibitedCodepoint

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, StringPrepError, ArgumentError
Instance Chain:
self, StringPrepError, ArgumentError
Inherits: Net::IMAP::StringPrep::StringPrepError
Defined in: lib/net/imap/stringprep.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/stringprep.rb', line 34

def initialize(table, *args, **kwargs)
  @table  = table
  details = (title = Tables::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/stringprep.rb', line 32

attr_reader :table