Sha256: 371495d8bae71f21843e9223fc71953d04f43fd2cca901eadd3fac86548c86cb
Contents?: true
Size: 594 Bytes
Versions: 14
Compression:
Stored size: 594 Bytes
Contents
require 'pdk' module PDK module CLI class FatalError < StandardError attr_reader :exit_code def initialize(msg = _('An unexpected error has occurred. Try running the command again with --debug'), opts = {}) @exit_code = opts.fetch(:exit_code, 1) super(msg) end end class ExitWithError < StandardError attr_reader :exit_code attr_reader :log_level def initialize(msg, opts = {}) @exit_code = opts.fetch(:exit_code, 1) @log_level = opts.fetch(:log_level, :error) super(msg) end end end end
Version data entries
14 entries across 14 versions & 1 rubygems