Sha256: a0b77bd083b7f8f8e31c2fd38996ff9e925b2cd2283c3a989fc216eb6bb91da8
Contents?: true
Size: 739 Bytes
Versions: 7
Compression:
Stored size: 739 Bytes
Contents
module Bozo # Error raised when a runner or hook finds the configuration or build in an # unexpected state. class ConfigurationError < StandardError # The code the program should exit with upon handling this error. attr_reader :exit_code # A message explaining the corrective actions someone can take to avoid the # error. attr_reader :message # Creates a new instance. # # @param [String] message # A message explaining the corrective actions someone can take to avoid # the error. def initialize(message) @message = message @exit_code = -1 end def inspect "Configuration error: #{message}" end end end
Version data entries
7 entries across 7 versions & 2 rubygems