Exception: Pure::ExtractionTimeError

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

Overview

Base class for errors found during extraction.

Direct Known Subclasses

ParseError, RestrictionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, line) ⇒ ExtractionTimeError

:nodoc:



32
33
34
35
# File 'lib/pure/error.rb', line 32

def initialize(file, line)  #:nodoc:
  @file, @line = file, line
  super(custom_message + " at #{@file}:#{@line}")
end

Instance Attribute Details

#fileObject (readonly)

:nodoc:



30
31
32
# File 'lib/pure/error.rb', line 30

def file
  @file
end

#lineObject (readonly)

:nodoc:



30
31
32
# File 'lib/pure/error.rb', line 30

def line
  @line
end