Exception: Cielo24::CieloError

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

Direct Known Subclasses

ParsingError, TimeoutError, WebError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, comment) ⇒ CieloError

Returns a new instance of CieloError.



69
70
71
72
# File 'lib/cielo24/web_utils.rb', line 69

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



68
69
70
# File 'lib/cielo24/web_utils.rb', line 68

def type
  @type
end

Instance Method Details

#to_sObject



74
75
76
# File 'lib/cielo24/web_utils.rb', line 74

def to_s
  "#{@type} - #{super.to_s}"
end