Exception: Coradoc::UnsupportedFormatError
- Defined in:
- lib/coradoc/errors.rb
Overview
Error raised when a requested format is not supported
Instance Attribute Summary collapse
-
#available_formats ⇒ Object
readonly
Returns the value of attribute available_formats.
-
#requested_format ⇒ Object
readonly
Returns the value of attribute requested_format.
Instance Method Summary collapse
-
#initialize(format, available: []) ⇒ UnsupportedFormatError
constructor
Create a new unsupported format error.
Constructor Details
#initialize(format, available: []) ⇒ UnsupportedFormatError
Create a new unsupported format error
298 299 300 301 302 |
# File 'lib/coradoc/errors.rb', line 298 def initialize(format, available: []) @requested_format = format @available_formats = available super() end |
Instance Attribute Details
#available_formats ⇒ Object (readonly)
Returns the value of attribute available_formats.
292 293 294 |
# File 'lib/coradoc/errors.rb', line 292 def available_formats @available_formats end |
#requested_format ⇒ Object (readonly)
Returns the value of attribute requested_format.
292 293 294 |
# File 'lib/coradoc/errors.rb', line 292 def requested_format @requested_format end |