Sha256: c1485d63719d63d6b29fcff283a4568be0f4d1bb69bf6c14421a4a3bd5e30d7b

Contents?: true

Size: 368 Bytes

Versions: 74

Compression:

Stored size: 368 Bytes

Contents

class RemoteException < Exception
  EXCEPTION_MESSAGES = {
    :method_not_defined => "Method is not defined",
    :invalid_formatting => "Invalid formatting",
    :could_not_install => "Could not install"
  }
  attr_reader :message
  
  def initialize(type=:method_not_defined, note="")
    @message = "Remote Exception: #{EXCEPTION_MESSAGES[type]} #{note}"
  end
end

Version data entries

74 entries across 74 versions & 2 rubygems

Version Path
auser-poolparty-0.2.62 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.63 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.64 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.65 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.66 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.67 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.68 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.69 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.70 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.71 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.72 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.74 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.76 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.77 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.78 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.79 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.8 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.80 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.81 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.84 lib/poolparty/exceptions/RemoteException.rb