Sha256: 429ce298e1cf55522b2c84715019c58a72c3e2677a718530fc6275fb5e44aef0

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

# Marker that means an expected error happens and
# we don't need to show the stack trace
class Brut::CLI::Error < StandardError
end
class Brut::CLI::SystemExecError < Brut::CLI::Error
  attr_reader :command,:exit_status
  def initialize(command,exit_status)
    super("#{command} failed - exited #{exit_status}")
    @command = command
    @exit_status = exit_status
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brut-0.0.1 lib/brut/cli/error.rb