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.44 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.45 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.46 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.47 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.48 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.49 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.5 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.50 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.51 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.52 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.53 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.54 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.55 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.56 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.57 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.58 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.59 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.6 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.60 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.61 lib/poolparty/exceptions/RemoteException.rb