Exception: Trello::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status_code = nil) ⇒ Error

Returns a new instance of Error.



6
7
8
9
# File 'lib/trello/error.rb', line 6

def initialize(message, status_code=nil)
  @status_code = status_code
  super(message)
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



4
5
6
# File 'lib/trello/error.rb', line 4

def status_code
  @status_code
end