Exception: MuPDF::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mupdf/command_error.rb

Overview

An error raised when an mutool command errors.

Instance Method Summary collapse

Constructor Details

#initialize(cmd:, result:, status:) ⇒ CommandError

Returns a new instance of CommandError.

Parameters:

  • cmd (String)
  • result (String)
  • status (Process::Status)


9
10
11
12
13
14
# File 'lib/mupdf/command_error.rb', line 9

def initialize(cmd:, result:, status:)
  super("cmd=#{cmd.inspect} result=#{result.inspect} status=#{status.inspect}")
  @cmd = cmd
  @result = result
  @status = status
end