Skip to content

Commit baabc6c

Browse files
committed
Add custom params validation error.
1 parent 338a2ff commit baabc6c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# encoding: utf-8
2+
3+
module Github #:nodoc
4+
# Raised when passed parameters are missing or contain wrong values.
5+
module Error
6+
class Validations < ClientError
7+
def initialize(errors)
8+
super(
9+
generate_message(
10+
:problem => '',
11+
:summary => '',
12+
:resolution => ''
13+
)
14+
)
15+
end
16+
end
17+
end # Error
18+
end # Github

0 commit comments

Comments
 (0)