Exception: GitCloud::GitException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- GitCloud::GitException
- Defined in:
- lib/git_cloud/git_exception.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(command) ⇒ GitException
constructor
A new instance of GitException.
Constructor Details
#initialize(command) ⇒ GitException
Returns a new instance of GitException.
4 5 6 7 |
# File 'lib/git_cloud/git_exception.rb', line 4 def initialize(command) @command = command @message = "Error::GitException::#{@command}" end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
3 4 5 |
# File 'lib/git_cloud/git_exception.rb', line 3 def command @command end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/git_cloud/git_exception.rb', line 3 def @message end |