class IRCParser::Error
Public: The exception which is thrown when parsing fails.
Attributes
value[R]
Public: The value which failed to parse correctly.
Public Class Methods
new(value)
click to toggle source
Public: Initialises a new parse error with the specified invalid value.
value - The value which failed to parse correctly.
# File lib/ircparser/error.rb, line 27 def initialize value @value = value end
Public Instance Methods
to_s()
click to toggle source
Public: The reason this error was raised.
# File lib/ircparser/error.rb, line 32 def to_s return "#{@value} -- #{super}" end