Exception: Colore::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_code, message) ⇒ Error

Returns a new instance of Error.


4
5
6
7
# File 'lib/errors.rb', line 4

def initialize http_code, message
  super message
  @http_code = http_code
end

Instance Attribute Details

#http_codeObject

Returns the value of attribute http_code


3
4
5
# File 'lib/errors.rb', line 3

def http_code
  @http_code
end