File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,23 @@ module Kracken
2
2
KrackenError = Class . new ( StandardError )
3
3
RequestError = Class . new ( KrackenError )
4
4
MissingUIDError = Class . new ( KrackenError )
5
+ UnprocessableEntity = Class . new ( KrackenError )
5
6
6
- module Controllers
7
- UnprocessableEntity = Class . new ( StandardError )
8
-
9
- class TokenUnauthorized < KrackenError
10
- def initialize ( msg = nil )
11
- msg ||= 'HTTP Token: Access denied.'
12
- super ( msg )
13
- end
7
+ class TokenUnauthorized < KrackenError
8
+ def initialize ( msg = nil )
9
+ msg ||= 'HTTP Token: Access denied.'
10
+ super ( msg )
14
11
end
12
+ end
15
13
16
- class ResourceNotFound < KrackenError
17
- attr_reader :missing_ids , :resource
18
- def initialize ( resource , missing_ids )
19
- @missing_ids = Array ( missing_ids )
20
- @resource = resource
21
- super (
22
- "Couldn't find #{ resource } with id(s): #{ missing_ids . join ( ', ' ) } "
23
- )
24
- end
14
+ class ResourceNotFound < KrackenError
15
+ attr_reader :missing_ids , :resource
16
+ def initialize ( resource , missing_ids )
17
+ @missing_ids = Array ( missing_ids )
18
+ @resource = resource
19
+ super (
20
+ "Couldn't find #{ resource } with id(s): #{ missing_ids . join ( ', ' ) } "
21
+ )
25
22
end
26
23
end
27
24
end
You can’t perform that action at this time.
0 commit comments