Exception: GitCloud::FileException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/git_cloud/file_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause) ⇒ FileException

Returns a new instance of FileException.



4
5
6
7
# File 'lib/git_cloud/file_exception.rb', line 4

def initialize(cause)
  @cause = cause
  @message = "Error::FileException::#{@cause}"
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



3
4
5
# File 'lib/git_cloud/file_exception.rb', line 3

def command
  @command
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/git_cloud/file_exception.rb', line 3

def message
  @message
end