File: http_server_error.rb

package info (click to toggle)
ruby-graphlient 0.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,648 kB
  • sloc: ruby: 1,288; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
module Graphlient
  module Errors
    class HttpServerError < Error
      attr_reader :status_code, :response

      def initialize(message, response)
        super(message, response)
        @status_code = response.code
        @response = response.body
      end
    end
  end
end