Sha256: 894ed63bc61172a90176dc9e3c47a8866ac7a36e7dbfc6265ec7c3abf870e432

Contents?: true

Size: 495 Bytes

Versions: 5

Compression:

Stored size: 495 Bytes

Contents

module Picasa
  # All Picasa exceptions can be cought by rescuing:
  # Picasa::StandardError
  #
  class StandardError < StandardError; end

  class ArgumentError < StandardError; end

  class ResponseError < StandardError
    attr_reader :response

    def initialize(message, response)
      @response = response
      super(message)
    end
  end

  class NotFoundError < ResponseError; end
  class ForbiddenError < ResponseError; end
  class PreconditionFailedError < ResponseError; end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
picasa-0.5.4 lib/picasa/exceptions.rb
picasa-0.5.3 lib/picasa/exceptions.rb
picasa-0.5.2 lib/picasa/exceptions.rb
picasa-0.5.1 lib/picasa/exceptions.rb
picasa-0.5.0 lib/picasa/exceptions.rb