Exception: TemplateConfigurator::ServiceException

Inherits:
Exception
  • Object
show all
Defined in:
lib/template_configurator/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code, output = nil) ⇒ ServiceException

Returns a new instance of ServiceException.



27
28
29
30
31
# File 'lib/template_configurator/service.rb', line 27

def initialize(msg, code, output = nil)
  @code = code
  @output = output
  super(msg)
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



26
27
28
# File 'lib/template_configurator/service.rb', line 26

def code
  @code
end

#outputObject

Returns the value of attribute output.



26
27
28
# File 'lib/template_configurator/service.rb', line 26

def output
  @output
end