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.15 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.16 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.2 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.20 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.21 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.22 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.23 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.24 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.25 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.26 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.3 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.35 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.36 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.37 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.38 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.39 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.4 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.40 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.41 lib/poolparty/exceptions/RemoteException.rb
auser-poolparty-0.2.42 lib/poolparty/exceptions/RemoteException.rb