Exception: Digicert::Errors::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Digicert::Errors::RequestError
show all
- Defined in:
- lib/digicert/errors/request_error.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of RequestError.
6
7
8
9
|
# File 'lib/digicert/errors/request_error.rb', line 6
def initialize(msg = {})
@msg = msg
super msg
end
|
Instance Method Details
#explanation ⇒ Object
18
19
20
|
# File 'lib/digicert/errors/request_error.rb', line 18
def explanation
"A request to Digicert API failed"
end
|
#kind ⇒ Object
22
23
24
|
# File 'lib/digicert/errors/request_error.rb', line 22
def kind
response_body.fetch("code", {})
end
|
#message ⇒ Object
11
12
13
14
15
16
|
# File 'lib/digicert/errors/request_error.rb', line 11
def message
<<-MSG.gsub(/^ {8}/, "")
#{explanation}:
#{response_body}
MSG
end
|