Exception: SelectPdf::ApiException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/selectpdf.rb

Overview

Exception thrown by SelectPdf API Client.

Instance Method Summary collapse

Constructor Details

#initialize(message, code = nil) ⇒ ApiException

Class constructor


181
182
183
184
185
# File 'lib/selectpdf.rb', line 181

def initialize(message, code = nil)
  super()
  @message = message
  @code = code
end

Instance Method Details

#to_sObject

Get complete error message


188
189
190
# File 'lib/selectpdf.rb', line 188

def to_s
  @code ? "(#{@code}) #{@message}" : @message
end