Exception: Saxon::Loader::NoJarsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/saxon/loader.rb

Overview

Error raised if Saxon::Loader.load! is called but the path handed in does not exist or is not a directory

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ NoJarsError

Returns a new instance of NoJarsError.



18
19
20
# File 'lib/saxon/loader.rb', line 18

def initialize(path)
  @path = path
end

Instance Method Details

#to_sObject

returns an error message including the missing path



23
24
25
# File 'lib/saxon/loader.rb', line 23

def to_s
  "The path ('#{@path}') you supplied for the Saxon .jar files doesn't exist, sorry"
end