Exception: Bidi2pdf::CmdError
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- WebsocketError
- ClientError
- Bidi2pdf::CmdError
- Defined in:
- lib/bidi2pdf.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(cmd, response) ⇒ CmdError
constructor
A new instance of CmdError.
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
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
38 39 40 |
# File 'lib/bidi2pdf.rb', line 38 def cmd @cmd end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
38 39 40 |
# File 'lib/bidi2pdf.rb', line 38 def response @response end |