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

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

Overview

StringPrepError raised when string contains a codepoint prohibited by table.

Instance Attribute Summary collapse

Attributes inherited from StringPrepError

#profile, #string

Instance Method Summary collapse

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
  message = "String contains a prohibited codepoint: %s" % [details]
  super(message, *args, **kwargs)
end

Instance Attribute Details

#tableObject (readonly)

Returns the value of attribute table.



32
33
34
# File 'lib/net/imap/stringprep.rb', line 32

def table
  @table
end