Exception: SelectPdf::ApiException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SelectPdf::ApiException
- Defined in:
- lib/selectpdf.rb
Overview
Exception thrown by SelectPdf API Client.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ ApiException
constructor
Class constructor.
-
#to_s ⇒ Object
Get complete error message.
Constructor Details
#initialize(message, code = nil) ⇒ ApiException
Class constructor
25 26 27 28 29 |
# File 'lib/selectpdf.rb', line 25 def initialize(, code = nil) super() @message = @code = code end |
Instance Method Details
#to_s ⇒ Object
Get complete error message
32 33 34 |
# File 'lib/selectpdf.rb', line 32 def to_s @code ? "(#{@code}) #{@message}" : @message end |