Sha256: 537f18799230809c92ff3c650550c519c938ef56e5bdb3e34c870633a9f656ba
Contents?: true
Size: 412 Bytes
Versions: 22
Compression:
Stored size: 412 Bytes
Contents
class RemoteException < Exception EXCEPTION_MESSAGES = { :method_not_defined => "Method is not defined", :invalid_formatting => "Invalid formatting", :could_not_install => "Could not install" } unless const_defined?("EXCEPTION_MESSAGES") attr_reader :message def initialize(type=:method_not_defined, note="") @message = "Remote Exception: #{EXCEPTION_MESSAGES[type]} #{note}" end end
Version data entries
22 entries across 22 versions & 3 rubygems