Exception: RunLengthEncodingRb::NegativeIntError

Inherits:
Error
  • Object
show all
Defined in:
lib/run_length_encoding_rb/error/negative_int_error.rb

Overview

Raises if run-length is negative.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "") ⇒ NegativeIntError

Returns a new instance of NegativeIntError.



10
11
12
# File 'lib/run_length_encoding_rb/error/negative_int_error.rb', line 10

def initialize(message = "")
  super(message)
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



8
9
10
# File 'lib/run_length_encoding_rb/error/negative_int_error.rb', line 8

def message
  @message
end