circuit-api 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/circuit_api/utils/connection.rb +1 -1
- data/lib/circuit_api/utils/errors.rb +4 -3
- data/lib/circuit_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c454e2036fbc574f3eba128408d0b0a0a7eafc76949b9f68e4d343e0fbf51a91
|
4
|
+
data.tar.gz: 4ec267ac51ba46e7a6b274e8a01c680a27d6cbbad5b510bb4c5d6d669d94dcc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a4fec6259749e15896ddd5425badc3839167b22bb8e981d2f89c63dc63f179f6f3912fad4cf4d3ade18739f901acc587157c44d95c8f1ce847606e7a2e69e69
|
7
|
+
data.tar.gz: fda87cbaf38ac36e75e3176d9a5d163572ded5ebeb927a3031b3e42cc5dc34d3b9f804c32e7ad08114502c0258022e9728d8ccb4d54fdd613dc0ee3e7e9a3bf0
|
@@ -1,14 +1,15 @@
|
|
1
1
|
module CircuitApi
|
2
2
|
class HttpError < StandardError
|
3
|
-
attr_reader :error_code, :error_body
|
3
|
+
attr_reader :error_code, :error_body, :uri
|
4
4
|
|
5
|
-
def initialize(code, body)
|
5
|
+
def initialize(code, body, uri)
|
6
6
|
@error_code = code
|
7
7
|
@error_body = body
|
8
|
+
@uri = uri
|
8
9
|
end
|
9
10
|
|
10
11
|
def message
|
11
|
-
"HTTP #{error_code}
|
12
|
+
"HTTP #{error_code} - URI: #{uri}.\n Error: #{error_body}"
|
12
13
|
end
|
13
14
|
end
|
14
15
|
|
data/lib/circuit_api/version.rb
CHANGED