Sha256: 46c0edc352cdea835f026f06875a10b734116ad2374e55e5ed34ef1ee26e2b00

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

module Nuvado
  #TODO: Better error messages

  class SystemExitException < RuntimeError; end

  class WrongAuthParamsException < SystemExitException
    def initialize
      super "Wrong username/password"
    end
  end

  class AuthParamsNotSet < SystemExitException
    def initialize
      super "You have not set your auth params, please run 'nuvado login'"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nuvado-1.0.0.rc3 lib/nuvado/exceptions.rb
nuvado-1.0.0.rc2 lib/nuvado/exceptions.rb
nuvado-1.0.0.rc1 lib/nuvado/exceptions.rb