Sha256: 6349d130f65b56d6c4be4c3336d93ee67e160bb81f61ae45997b3927480c0999

Contents?: true

Size: 302 Bytes

Versions: 3

Compression:

Stored size: 302 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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda-1.4.2 lib/panda/errors.rb
panda-1.4.1 lib/panda/errors.rb
panda-1.4.0 lib/panda/errors.rb