Exception: Datadog::CI::Git::CLI::GitCommandExecutionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/datadog/ci/git/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, output:, command:, status:) ⇒ GitCommandExecutionError

Returns a new instance of GitCommandExecutionError.



11
12
13
14
15
16
17
# File 'lib/datadog/ci/git/cli.rb', line 11

def initialize(message, output:, command:, status:)
  super(message)

  @output = output
  @command = command
  @status = status
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



10
11
12
# File 'lib/datadog/ci/git/cli.rb', line 10

def command
  @command
end

#outputObject (readonly)

Returns the value of attribute output.



10
11
12
# File 'lib/datadog/ci/git/cli.rb', line 10

def output
  @output
end

#statusObject (readonly)

Returns the value of attribute status.



10
11
12
# File 'lib/datadog/ci/git/cli.rb', line 10

def status
  @status
end