Exception: Tap::Env::ConfigError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tap/env.rb

Overview

Raised when there is a Env-level configuration error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_error, env_path) ⇒ ConfigError

Returns a new instance of ConfigError.



617
618
619
620
621
# File 'lib/tap/env.rb', line 617

def initialize(original_error, env_path)
  @original_error = original_error
  @env_path = env_path
  super()
end

Instance Attribute Details

#env_pathObject (readonly)

Returns the value of attribute env_path.



615
616
617
# File 'lib/tap/env.rb', line 615

def env_path
  @env_path
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



615
616
617
# File 'lib/tap/env.rb', line 615

def original_error
  @original_error
end

Instance Method Details

#messageObject



623
624
625
626
627
# File 'lib/tap/env.rb', line 623

def message
  "Configuration error: #{original_error.message}\n" +
  ($DEBUG ? "#{original_error.backtrace}\n" : "") + 
  "Check '#{env_path}' configurations"
end