Exception: Gitlab::Git::Repository::CreateTreeError
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- Gitlab::Git::Repository::CreateTreeError
- Defined in:
- lib/gitlab/git/repository.rb
Constant Summary
Constants inherited from BaseError
BaseError::DEBUG_ERROR_STRING_REGEX, BaseError::GRPC_CODES, BaseError::METADATA_KEY
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Attributes inherited from BaseError
#code, #metadata, #service, #status
Instance Method Summary collapse
-
#initialize(error_code) ⇒ CreateTreeError
constructor
A new instance of CreateTreeError.
Methods inherited from BaseError
#build_raw_message, #set_grpc_error_code, #set_grpc_error_metadata
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_code ⇒ Object (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 |