Exception: Tap::Env::ConfigError
- Defined in:
- lib/tap/env.rb
Overview
Raised when there is a Env-level configuration error.
Instance Attribute Summary collapse
-
#env_path ⇒ Object
readonly
Returns the value of attribute env_path.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(original_error, env_path) ⇒ ConfigError
constructor
A new instance of ConfigError.
- #message ⇒ Object
Constructor Details
#initialize(original_error, env_path) ⇒ ConfigError
Returns a new instance of ConfigError.
613 614 615 616 617 |
# File 'lib/tap/env.rb', line 613 def initialize(original_error, env_path) @original_error = original_error @env_path = env_path super() end |
Instance Attribute Details
#env_path ⇒ Object (readonly)
Returns the value of attribute env_path.
611 612 613 |
# File 'lib/tap/env.rb', line 611 def env_path @env_path end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
611 612 613 |
# File 'lib/tap/env.rb', line 611 def original_error @original_error end |
Instance Method Details
#message ⇒ Object
619 620 621 622 623 |
# File 'lib/tap/env.rb', line 619 def "Configuration error: #{original_error.}\n" + ($DEBUG ? "#{original_error.backtrace}\n" : "") + "Check '#{env_path}' configurations" end |