Exception: Gitlab::Git::Repository::CreateTreeError
- Inherits:
-
StandardError
- Object
- StandardError
- Gitlab::Git::Repository::CreateTreeError
- Defined in:
- lib/gitlab/git/repository.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_code) ⇒ CreateTreeError
constructor
A new instance of CreateTreeError.
Constructor Details
#initialize(error_code) ⇒ CreateTreeError
Returns a new instance of CreateTreeError.
33 34 35 36 37 38 |
# File 'lib/gitlab/git/repository.rb', line 33 def initialize(error_code) super(self.class.name) # The value coming from Gitaly is an uppercase String (e.g., "EMPTY") @error_code = error_code.downcase.to_sym end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code
31 32 33 |
# File 'lib/gitlab/git/repository.rb', line 31 def error_code @error_code end |