Exception: Kramdown::PlantUml::PlantUmlError
- Defined in:
- lib/kramdown-plantuml/plantuml_error.rb
Overview
PlantUML Error
Instance Method Summary collapse
-
#initialize(result) ⇒ PlantUmlError
constructor
A new instance of PlantUmlError.
Constructor Details
#initialize(result) ⇒ PlantUmlError
Returns a new instance of PlantUmlError.
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 (result) end |