Exception: Saxon::XSLT::BadOptionError

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

Overview

Raised if a bad option name is passed in the options hash to Executable#apply_templates et al

Instance Method Summary collapse

Constructor Details

#initialize(option_name) ⇒ BadOptionError

Returns a new instance of BadOptionError.



323
324
325
# File 'lib/saxon/xslt/executable.rb', line 323

def initialize(option_name)
  @option_name = option_name
end

Instance Method Details

#to_sObject

return error message including the option name



328
329
330
# File 'lib/saxon/xslt/executable.rb', line 328

def to_s
  "Option :#{@option_name} is not a recognised option."
end