Exception: PuppetX::Cups::Ipp::QueryError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/puppet_x/cups/ipp.rb

Overview

A custom error class for easier qualification of errors

Instance Method Summary collapse

Constructor Details

#initialize(shellout) ⇒ QueryError

Returns a new instance of QueryError


77
78
79
80
81
82
83
84
85
# File 'lib/puppet_x/cups/ipp.rb', line 77

def initialize(shellout)
  message = "IPP query '#{shellout.command}' failed.\n" \
            "EXITCODE: #{shellout.exitcode}\n" \
            "STDIN:\n#{shellout.stdin}\n" \
            "STDOUT:\n#{shellout.stdout}\n" \
            "STDERR:\n#{shellout.stderr}"

  super(message)
end