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

Version Path
bozo-0.5.0 lib/bozo/configuration_error.rb
bozo-0.4.2 lib/bozo/configuration_error.rb
bozo-0.4.1 lib/bozo/configuration_error.rb
bozo-0.4.0 lib/bozo/configuration_error.rb
bozo-0.3.3 lib/bozo/configuration_error.rb
iisconfig-0.0.1.pre2 build/bundler/ruby/1.9.1/bundler/gems/bozo-2cbbc5714688/lib/bozo/configuration_error.rb
iisconfig-0.0.1.pre1 build/bundler/ruby/1.9.1/bundler/gems/bozo-2cbbc5714688/lib/bozo/configuration_error.rb