Exception: Bidi2pdf::CmdError

Inherits:
ClientError show all
Defined in:
lib/bidi2pdf.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd, response) ⇒ CmdError



40
41
42
43
44
45
# File 'lib/bidi2pdf.rb', line 40

def initialize(cmd, response)
  @cmd = cmd
  @response = response

  super("Error response: #{response["error"]} #{cmd.inspect}")
end

Instance Attribute Details

#cmdObject (readonly)

Returns the value of attribute cmd.



38
39
40
# File 'lib/bidi2pdf.rb', line 38

def cmd
  @cmd
end

#responseObject (readonly)

Returns the value of attribute response.



38
39
40
# File 'lib/bidi2pdf.rb', line 38

def response
  @response
end