Sha256: e4340a87c505900e72d1686e707380593e26411c76d7b418a3dbad0ede5dbab1

Contents?: true

Size: 492 Bytes

Versions: 20

Compression:

Stored size: 492 Bytes

Contents

# encoding: utf-8

module Nimbu #:nodoc
  # Raised when Nimbu returns the HTTP status code 404
  module Error
    class ClientError < NimbuError
      attr_reader :problem, :summary, :resolution

      def initialize(message)
        super(message)
      end

      def generate_message(attributes)
        "\nProblem:\n #{attributes[:problem]}"+
        "\nSummary:\n #{attributes[:summary]}"+
        "\nResolution:\n #{attributes[:resolution]}"
      end
    end
  end # Error
end # Nimbu

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
nimbu-api-0.5.0 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.4.4 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.4.3 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.4.2 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.4.1 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.4.0 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.3.0 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.2.1 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.2 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.2.beta.3 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.2.beta.2 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.2.beta.1 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.2.beta lib/nimbu-api/errors/client_error.rb
nimbu-api-0.1.5 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.1.4 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.1.3 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.1.1 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.1 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.0.2 lib/nimbu-api/errors/client_error.rb
nimbu-api-0.0.1 lib/nimbu-api/errors/client_error.rb