Exception: Webgen::CommandNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/webgen/error.rb

Overview

This error is raised when a needed external command is not found.

Instance Attribute Summary collapse

Attributes inherited from Error

#location, #path

Instance Method Summary collapse

Methods inherited from Error

error_file, error_line, #message

Constructor Details

#initialize(cmd, location = nil, path = nil) ⇒ CommandNotFoundError

Create a new CommandNotFoundError.

The parameter cmd specifies the command that is missing.



153
154
155
156
# File 'lib/webgen/error.rb', line 153

def initialize(cmd, location = nil, path = nil)
  super("The needed command '#{cmd}' is missing!", location, path)
  @cmd = cmd
end

Instance Attribute Details

#cmdObject (readonly)

The command that is missing.



148
149
150
# File 'lib/webgen/error.rb', line 148

def cmd
  @cmd
end