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
373 374 375 376 377 |
# File 'lib/coradoc/errors.rb', line 373 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.
367 368 369 |
# File 'lib/coradoc/errors.rb', line 367 def available_formats @available_formats end |
#requested_format ⇒ Object (readonly)
Returns the value of attribute requested_format.
367 368 369 |
# File 'lib/coradoc/errors.rb', line 367 def requested_format @requested_format end |