Exception: Commits::CreateService::ChangeError
- Inherits:
-
StandardError
- Object
- StandardError
- Commits::CreateService::ChangeError
- Defined in:
- app/services/commits/create_service.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(message, error_code = nil) ⇒ ChangeError
constructor
A new instance of ChangeError.
Constructor Details
#initialize(message, error_code = nil) ⇒ ChangeError
Returns a new instance of ChangeError.
9 10 11 12 13 |
# File 'app/services/commits/create_service.rb', line 9 def initialize(, error_code = nil) super() @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
7 8 9 |
# File 'app/services/commits/create_service.rb', line 7 def error_code @error_code end |