Exception: Gitlab::Git::Repository::CreateTreeError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/gitlab/git/repository.rb

Constant Summary

Constants inherited from BaseError

BaseError::DEBUG_ERROR_STRING_REGEX

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code) ⇒ CreateTreeError

Returns a new instance of CreateTreeError.


34
35
36
37
38
39
# File 'lib/gitlab/git/repository.rb', line 34

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_codeObject (readonly)

Returns the value of attribute error_code.


32
33
34
# File 'lib/gitlab/git/repository.rb', line 32

def error_code
  @error_code
end