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
181 182 183 184 185 |
# File 'lib/selectpdf.rb', line 181 def initialize(, code = nil) super() @message = @code = code end |
Instance Method Details
#to_s ⇒ Object
Get complete error message
188 189 190 |
# File 'lib/selectpdf.rb', line 188 def to_s @code ? "(#{@code}) #{@message}" : @message end |