Exception: GooglePlus::ConnectionError

Inherits:
Exception
  • Object
show all
Defined in:
lib/google_plus/errors/connection_error.rb

Overview

A wrapper for errors encountered during connection, ie: SocketError

Instance Method Summary collapse

Constructor Details

#initialize(e) ⇒ ConnectionError

Initialize a new ConnectionError

Parameters:

  • e (Exception)

    The exception that occurred



8
9
10
# File 'lib/google_plus/errors/connection_error.rb', line 8

def initialize(e)
  @exception = e
end

Instance Method Details

#messageString

Get the message for this error

Returns:

  • (String)

    a message representing this error



14
15
16
# File 'lib/google_plus/errors/connection_error.rb', line 14

def message
  @exception.message
end