Exception: Metanorma::Plugin::Plantuml::InvalidFormatError

Inherits:
PlantumlError
  • Object
show all
Defined in:
lib/metanorma/plugin/plantuml/invalid_format_error.rb

Instance Attribute Summary

Attributes inherited from PlantumlError

#original_error

Instance Method Summary collapse

Constructor Details

#initialize(format, available_formats) ⇒ InvalidFormatError

Returns a new instance of InvalidFormatError.



9
10
11
12
13
14
# File 'lib/metanorma/plugin/plantuml/invalid_format_error.rb', line 9

def initialize(format, available_formats)
  super(
    "Invalid format '#{format}'. Available formats: " \
    "#{available_formats.join(', ')}",
  )
end