Sha256: 99eddadc9828a184d992dfee03ac77c2ab15f792ab730d417c1b89fc4cd8b8b1

Contents?: true

Size: 657 Bytes

Versions: 9

Compression:

Stored size: 657 Bytes

Contents

module Flydata

class AgentError < StandardError
    def self.description
      text = <<-EOM
  Fix the issue and try again.  If the problem continues, please contact support@flydata.com

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

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

    attr_writer :description
end

class ServerDataProcessingTimeout < AgentError
end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
flydata-0.3.8 lib/flydata/errors.rb
flydata-0.3.7 lib/flydata/errors.rb
flydata-0.3.6 lib/flydata/errors.rb
flydata-0.3.5 lib/flydata/errors.rb
flydata-0.3.4 lib/flydata/errors.rb
flydata-0.3.3 lib/flydata/errors.rb
flydata-0.3.2 lib/flydata/errors.rb
flydata-0.3.1 lib/flydata/errors.rb
flydata-0.3.0 lib/flydata/errors.rb