Exception: Renee::Core::ClientError

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

Overview

Used to indicate a client-error has occurred (e.g. 4xx)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) { ... } ⇒ ClientError

Returns a new instance of ClientError.

Parameters:

  • message (String)

    The message for this exception.

Yields:

  • The optional block to instance-eval in the case this error is raised.



9
10
11
12
# File 'lib/renee_core/exceptions.rb', line 9

def initialize(message, &response)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



5
6
7
# File 'lib/renee_core/exceptions.rb', line 5

def response
  @response
end