Exception: Saxon::Loader::MissingJarError

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 contain the Saxon .jars

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingJarError

Returns a new instance of MissingJarError.



31
32
33
# File 'lib/saxon/loader.rb', line 31

def initialize(path)
  @path = path
end

Instance Method Details

#to_sObject

returns an error message including the path looked in and jars we were looking for



36
37
38
# File 'lib/saxon/loader.rb', line 36

def to_s
  "One of saxon9he.jar, saxon9pe.jar, or saxon9ee.jar must be present in the path ('#{@path}') you supplied, sorry"
end