Exception: Kramdown::PlantUml::PlantUmlError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/kramdown-plantuml/plantuml_error.rb

Overview

PlantUML Error

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ PlantUmlError

Returns a new instance of PlantUmlError.

Raises:

  • (ArgumentError)


9
10
11
12
13
14
# File 'lib/kramdown-plantuml/plantuml_error.rb', line 9

def initialize(result)
  raise ArgumentError, 'result cannot be nil' if result.nil?
  raise ArgumentError, "result must be a #{PlantUmlResult}" unless result.is_a?(PlantUmlResult)

  super create_message(result)
end