Exception: Saxon::XSLT::BadOptionError
- Inherits:
-
StandardError
- Object
- StandardError
- Saxon::XSLT::BadOptionError
- 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
-
#initialize(option_name) ⇒ BadOptionError
constructor
A new instance of BadOptionError.
-
#to_s ⇒ Object
return error message including the option name.
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_s ⇒ Object
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 |