Sha256: 54811e2fb377c42e918b5a7d7dddb726ade01c4f0d95d01262c327e81d271b3b

Contents?: true

Size: 352 Bytes

Versions: 3

Compression:

Stored size: 352 Bytes

Contents

module Panda
  
  class Error < StandardError; end
  
  class APIError < Panda::Error
    def initialize(options)
      super("#{options['error']}: #{options['message']}")
    end
  end

  class ServiceNotAvailable < Panda::Error
    def initialize
      super("ServiceNotAvailable")
    end
  end

  class ConfigurationError < Panda::Error
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda-1.5.0 lib/panda/errors.rb
panda-1.4.4 lib/panda/errors.rb
panda-1.4.3 lib/panda/errors.rb