Exception: Cielo24::WebError

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

Instance Attribute Summary collapse

Attributes inherited from CieloError

#type

Instance Method Summary collapse

Constructor Details

#initialize(status_code, type, comment) ⇒ WebError

Returns a new instance of WebError.



81
82
83
84
# File 'lib/cielo24/web_utils.rb', line 81

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

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



80
81
82
# File 'lib/cielo24/web_utils.rb', line 80

def status_code
  @status_code
end

Instance Method Details

#to_sObject



86
87
88
# File 'lib/cielo24/web_utils.rb', line 86

def to_s
  "#{@status_code}:#{super.to_s}"
end