Sha256: aef78b12cdee9f2962140dbf049fc52d4f28534b08a7f17ec0fa750b918c01ea

Contents?: true

Size: 621 Bytes

Versions: 8

Compression:

Stored size: 621 Bytes

Contents

module Megam
  class Gogs
    module Errors
      class Error < StandardError; end

      class ErrorWithResponse < Error
        attr_reader :response

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


      end

      class Unauthorized < ErrorWithResponse; end
      class Forbidden < ErrorWithResponse; end
      class NotFound < ErrorWithResponse; end
      class Timeout < ErrorWithResponse; end
      class Locked < ErrorWithResponse; end
      class Socket < ErrorWithResponse; end
      class RequestFailed < ErrorWithResponse; end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
megam_gogs-0.8.0 lib/megam/gogs/errors.rb
megam_gogs-0.7.0 lib/megam/gogs/errors.rb
megam_gogs-0.6.0 lib/megam/gogs/errors.rb
megam_gogs-0.5.0 lib/megam/gogs/errors.rb
megam_gogs-0.4.0 lib/megam/gogs/errors.rb
megam_gogs-0.3.0 lib/megam/gogs/errors.rb
megam_gogs-0.2.0 lib/megam/gogs/errors.rb
megam_gogs-0.1.0 lib/megam/gogs/errors.rb