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.



49
50
51
52
# File 'lib/cielo24/web_utils.rb', line 49

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



48
49
50
# File 'lib/cielo24/web_utils.rb', line 48

def type
  @type
end

Instance Method Details

#to_sObject



54
55
56
# File 'lib/cielo24/web_utils.rb', line 54

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