Exception: Postsvg::TranslationError

Inherits:
Error
  • Object
show all
Defined in:
lib/postsvg/errors.rb

Overview

SVG -> PS translation failed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, element_name: nil) ⇒ TranslationError

Returns a new instance of TranslationError.



52
53
54
55
# File 'lib/postsvg/errors.rb', line 52

def initialize(message, element_name: nil)
  @element_name = element_name
  super(message)
end

Instance Attribute Details

#element_nameObject (readonly)

Returns the value of attribute element_name.



50
51
52
# File 'lib/postsvg/errors.rb', line 50

def element_name
  @element_name
end