Sha256: 9053d2ebcb84649d202794b484d8eb9df818bc0dad52852b5d26e335db96e5c0

Contents?: true

Size: 608 Bytes

Versions: 9

Compression:

Stored size: 608 Bytes

Contents

module Ldp
  class Error < StandardError; end
  
  class HttpError          < RuntimeError; end
  class BadRequest         < HttpError; end # 400
  class NotFound           < HttpError; end # 404
  class Conflict           < HttpError; end # 409
  class Gone               < HttpError; end # 410
  class PreconditionFailed < HttpError; end # 412

  class UnexpectedContentType < RuntimeError; end

  class GraphDifferenceException < Ldp::Error
    attr_reader :diff
    def initialize message, diff
      super(message)
      @diff = diff
    end
  end

  ETagMismatch = PreconditionFailed # deprecation
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ldp-1.0.0 lib/ldp/error.rb
ldp-0.7.2 lib/ldp/error.rb
ldp-0.7.1 lib/ldp/error.rb
ldp-0.7.0 lib/ldp/error.rb
ldp-0.6.4 lib/ldp/error.rb
ldp-0.6.3 lib/ldp/error.rb
ldp-0.6.2 lib/ldp/error.rb
ldp-0.6.1 lib/ldp/error.rb
ldp-0.6.0 lib/ldp/error.rb