Sha256: ef871977238c04395e038566c25af68767c2cf70575b97ebe290a5b9d32bd471

Contents?: true

Size: 300 Bytes

Versions: 107

Compression:

Stored size: 300 Bytes

Contents

module AppMap
  # Raised when a system / shell command fails.
  class CommandError < StandardError
    attr_reader :command, :msg

    def initialize(command, msg = nil)
      super [ "Command failed: #{command}", msg ].compact.join('; ')

      @command = command
      @msg = msg
    end
  end
end

Version data entries

107 entries across 107 versions & 1 rubygems

Version Path
appmap-1.1.1 lib/appmap/command_error.rb
appmap-1.0.1 lib/appmap/command_error.rb
appmap-1.0.0 lib/appmap/command_error.rb
appmap-0.103.0 lib/appmap/command_error.rb
appmap-0.102.2 lib/appmap/command_error.rb
appmap-0.102.1 lib/appmap/command_error.rb
appmap-0.102.0 lib/appmap/command_error.rb
appmap-0.101.0 lib/appmap/command_error.rb
appmap-0.100.0 lib/appmap/command_error.rb
appmap-0.99.4 lib/appmap/command_error.rb
appmap-0.99.2 lib/appmap/command_error.rb
appmap-0.99.1 lib/appmap/command_error.rb
appmap-0.99.0 lib/appmap/command_error.rb
appmap-0.98.1 lib/appmap/command_error.rb
appmap-0.98.0 lib/appmap/command_error.rb
appmap-0.97.0 lib/appmap/command_error.rb
appmap-0.96.0 lib/appmap/command_error.rb
appmap-0.95.2 lib/appmap/command_error.rb
appmap-0.95.1 lib/appmap/command_error.rb
appmap-0.95.0 lib/appmap/command_error.rb