Exception: GhostRb::Errors::RequestError

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

Overview

Author:

  • Rene Hernandez

Since:

  • 0.2

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status, errors) ⇒ RequestError

Returns a new instance of RequestError.

Since:

  • 0.2



12
13
14
15
16
# File 'lib/ghost_rb/errors.rb', line 12

def initialize(message, status, errors)
  super(message)
  @status = status
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Since:

  • 0.2



10
11
12
# File 'lib/ghost_rb/errors.rb', line 10

def errors
  @errors
end

#statusObject (readonly)

Since:

  • 0.2



10
11
12
# File 'lib/ghost_rb/errors.rb', line 10

def status
  @status
end