Exception: RemoteException

Inherits:
Exception show all
Defined in:
lib/poolparty/exceptions/RemoteException.rb

Constant Summary collapse

EXCEPTION_MESSAGES =
{
  :method_not_defined => "Method is not defined",
  :invalid_formatting => "Invalid formatting",
  :could_not_install => "Could not install"
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = :method_not_defined, note = "") ⇒ RemoteException

Returns a new instance of RemoteException.



9
10
11
# File 'lib/poolparty/exceptions/RemoteException.rb', line 9

def initialize(type=:method_not_defined, note="")
  @message = "Remote Exception: #{EXCEPTION_MESSAGES[type]} #{note}"
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'lib/poolparty/exceptions/RemoteException.rb', line 7

def message
  @message
end