Exception: Cielo24::WebError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cielo24/web_utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, comment) ⇒ WebError

Returns a new instance of WebError.



60
61
62
63
# File 'lib/cielo24/web_utils.rb', line 60

def initialize(type, comment)
  super(comment)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



59
60
61
# File 'lib/cielo24/web_utils.rb', line 59

def type
  @type
end

Instance Method Details

#to_sObject



65
66
67
# File 'lib/cielo24/web_utils.rb', line 65

def to_s
  return @type + ' - ' + super.to_s
end