fanforce-errors 0.3 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/fanforce/errors/errors.rb +3 -0
- data/lib/fanforce/errors/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGE4YTdkZTRiNWRmYTc2ZmIzMGY0OWI2YTUwNzJiYjAwZjAzYTgzMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTdiYmQ4NTgwODM3NGFlMmJjMzUwZmI5ZWUxZTJlZTQ0NGIxNzI4MQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmI0N2Y5NDhjN2VkMjM1ZTUzNDlmNWUwMmU4NzNhYmU0YWI4MmQ3OGRlMjhl
|
10
|
+
NmE5YTBiNzlkZjE0YWUyOTU5ZDA0MjZhMDlmZDcxMzM2OTc4ZmFlZjRkN2Nm
|
11
|
+
ZDZlZjgwMmI3OWY5OGY0OThlYzA3ZWZlMzhiNzIyOTE2MjdkM2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODk2Zjc5NzllZjFkM2Y0OWI4OTYxOGVhYWY3Mjc0N2U4ODZiNmYwY2UxYzQ1
|
14
|
+
ODUyYjAxZWNlNTJmYWYyM2FkNWZiMzRhMWVhMzc4ZDVkMjE2ODc0NzFmNjk0
|
15
|
+
NmVmMTdhOGU3ZjJiNTcwZjNhZDRlZWVjYTZkZTI3MGViNmQ2MTU=
|
@@ -80,6 +80,9 @@ class Fanforce::Error::NotFound < Fanforce::Error # Method or record could not b
|
|
80
80
|
)
|
81
81
|
end
|
82
82
|
end
|
83
|
+
def self.for(resource)
|
84
|
+
self.new(resource)
|
85
|
+
end
|
83
86
|
end
|
84
87
|
|
85
88
|
class Fanforce::Error::RequestFailed < Fanforce::Error # Request has correct fields but failed for another reason
|