Exception: Copyleaks::CommandException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/copyleaks/models/exceptions/command_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ CommandException

Returns a new instance of CommandException.



28
29
30
# File 'lib/copyleaks/models/exceptions/command_exception.rb', line 28

def initialize(reason)
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



26
27
28
# File 'lib/copyleaks/models/exceptions/command_exception.rb', line 26

def reason
  @reason
end