Exception: Sxn::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Sxn::Error
- Defined in:
- lib/sxn/errors.rb
Overview
Base error class for all Sxn-specific errors
Direct Known Subclasses
ApplicationError, ConfigurationError, Database::Error, DatabaseError, GitError, MCPError, ProjectError, RollbackError, RuleError, Rules::RulesError, SecurityError, SessionError, TemplateError, Templates::Errors::TemplateError, 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) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, exit_code: 1) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'lib/sxn/errors.rb', line 8 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.
6 7 8 |
# File 'lib/sxn/errors.rb', line 6 def exit_code @exit_code end |