Exception: GitShizzle::Dsl::CommandDefinitionError

Inherits:
Error
  • Object
show all
Defined in:
lib/git_shizzle/dsl/command_definition_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(command_or_identifier, message) ⇒ CommandDefinitionError

Returns a new instance of CommandDefinitionError.



5
6
7
8
9
10
11
12
13
# File 'lib/git_shizzle/dsl/command_definition_error.rb', line 5

def initialize(command_or_identifier, message)
  if command_or_identifier.respond_to? :identifier
    identifier = command_or_identifier.identifier
  else
    identifier = command_or_identifier
  end

  super "Command '#{identifier}': #{message}"
end