Exception: RemoteException
- 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
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(type = :method_not_defined, note = "") ⇒ RemoteException
constructor
A new instance of RemoteException.
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
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/poolparty/exceptions/RemoteException.rb', line 7 def @message end |