Class: Lutaml::Model::FormatAdapterNotSpecifiedError

Inherits:
Error
  • Object
show all
Defined in:
lib/lutaml/model/error/format_adapter_not_specified_error.rb

Instance Method Summary collapse

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("    \#{@format} Format Adapter Not Configured.\n\n    It looks like no \#{@format} format adapter has been specified.\n\n    To resolve this, please configure adapter like this in your setup:\n\n      Lutaml::Model::Config.\#{@format}_adapter_type = :type\n\n    NOTE: For using XML and TOML adapters, install the respective gems.\n\n    For more details, check the configuration guide:\n    https://github.com/lutaml/lutaml-model#configuration-1\n  MSG\n  )\nend\n"