Exception: FilesHunter::BeginPatternDecoder::TruncatedDataError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/fileshunter/BeginPatternDecoder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, cursor_truncated) ⇒ TruncatedDataError

Constructor

Parameters
  • message (String): The error message

  • cursor_truncated (Fixnum): The exceeding offset



25
26
27
28
# File 'lib/fileshunter/BeginPatternDecoder.rb', line 25

def initialize(message, cursor_truncated)
  super(message)
  @cursor_truncated = cursor_truncated
end

Instance Attribute Details

#cursor_truncatedObject (readonly)

Returns the value of attribute cursor_truncated.



18
19
20
# File 'lib/fileshunter/BeginPatternDecoder.rb', line 18

def cursor_truncated
  @cursor_truncated
end