Exception: Net::IMAP::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/net/imap/errors.rb

Overview

Superclass of all errors used to encapsulate “fail” responses from the server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

Returns a new instance of ResponseError.



253
254
255
256
257
# File 'lib/net/imap/errors.rb', line 253

def initialize(response)
  @response = response

  super @response.data.text
end

Instance Attribute Details

#responseObject

The response that caused this error



251
252
253
# File 'lib/net/imap/errors.rb', line 251

def response
  @response
end