Class: Lutaml::Model::FormatAdapterNotSpecifiedError
- Defined in:
- lib/lutaml/model/error/format_adapter_not_specified_error.rb
Instance Method Summary collapse
-
#initialize(format) ⇒ FormatAdapterNotSpecifiedError
constructor
A new instance of FormatAdapterNotSpecifiedError.
Constructor Details
#initialize(format) ⇒ FormatAdapterNotSpecifiedError
Returns a new instance of FormatAdapterNotSpecifiedError.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/lutaml/model/error/format_adapter_not_specified_error.rb', line 4 def initialize(format) @format = format super(<<~MSG #{@format} Format Adapter Not Configured. It looks like no #{@format} format adapter has been specified. To resolve this, please configure adapter like this in your setup: Lutaml::Model::Config.#{@format}_adapter_type = :type NOTE: For using XML and TOML adapters, install the respective gems. For more details, check the configuration guide: https://github.com/lutaml/lutaml-model#configuration-1 MSG ) end |