Exception: Net::IMAP::ResponseError

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

Overview

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ResponseError) initialize(response)

A new instance of ResponseError



3434
3435
3436
3437
3438
# File 'lib/net/imap.rb', line 3434

def initialize(response)
  @response = response

  super @response.data.text
end

Instance Attribute Details

- (Object) response

The response that caused this error



3432
3433
3434
# File 'lib/net/imap.rb', line 3432

def response
  @response
end