Class: LanguageOperator::CLI::Errors::ThorCompatibleError
- Inherits:
-
Thor::Error
- Object
- Thor::Error
- LanguageOperator::CLI::Errors::ThorCompatibleError
- Defined in:
- lib/language_operator/cli/errors/thor_errors.rb
Overview
Base error class that integrates properly with Thor's error handling while providing specific exit codes for different error types
Direct Known Subclasses
AuthError, NetworkError, NotFoundError, SynthesisError, ValidationError
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(message = nil, exit_code = 1) ⇒ ThorCompatibleError
constructor
A new instance of ThorCompatibleError.
Constructor Details
#initialize(message = nil, exit_code = 1) ⇒ ThorCompatibleError
Returns a new instance of ThorCompatibleError.
13 14 15 16 |
# File 'lib/language_operator/cli/errors/thor_errors.rb', line 13 def initialize( = nil, exit_code = 1) super() @exit_code = exit_code end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
11 12 13 |
# File 'lib/language_operator/cli/errors/thor_errors.rb', line 11 def exit_code @exit_code end |