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