Exception: Flydata::AgentError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/flydata/errors.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#descriptionObject



20
21
22
23
24
25
26
# File 'lib/flydata/errors.rb', line 20

def description
  if instance_variable_defined?(:@description) && @description
    @description
  else
    self.class.description
  end
end

Class Method Details

.descriptionObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/flydata/errors.rb', line 4

def self.description
  text = <<-EOM
  Fix the issue and try again.  If the problem continues, please contact [email protected]

EOM

  flydata_log = File.join(FLYDATA_HOME, 'flydata.log')
  if File.exists?(flydata_log)
    text += <<-EOM
Also check the Agent log.
   Log path: #{flydata_log}
EOM
  end
  text
end