Exception: Webgen::CommandNotFoundError
- Defined in:
- lib/webgen/error.rb
Overview
This error is raised when a needed external command is not found.
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
The command that is missing.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(cmd, location = nil, path = nil) ⇒ CommandNotFoundError
constructor
Create a new CommandNotFoundError.
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
#cmd ⇒ Object (readonly)
The command that is missing.
148 149 150 |
# File 'lib/webgen/error.rb', line 148 def cmd @cmd end |