Exception: CovLoupe::UsageError

Inherits:
Error
  • Object
show all
Defined in:
lib/cov_loupe/errors.rb

Overview

Command line usage errors

Instance Attribute Summary

Attributes inherited from Error

#original_error

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from CovLoupe::Error

Class Method Details

.for_subcommand(usage_fragment) ⇒ Object



183
184
185
# File 'lib/cov_loupe/errors.rb', line 183

def self.for_subcommand(usage_fragment)
  new("Usage: cov-loupe #{usage_fragment}")
end

Instance Method Details

#user_friendly_messageObject



187
188
189
# File 'lib/cov_loupe/errors.rb', line 187

def user_friendly_message
  message
end