module Minimart::Error
The collection of Minimart
specific errors.
Public Class Methods
handle_exception(ex)
click to toggle source
Gracefully handle any errors raised by Minimart
, and exit with a failure status code. @param [Minimart::Error::BaseError] ex
# File lib/minimart/error.rb, line 27 def self.handle_exception(ex) Configuration.output.puts_red(ex.message) exit false end