Sha256: 62a64cdf2f825f95385705d51ca37245a08fca8d30734caa84f93757a129bc10

Contents?: true

Size: 696 Bytes

Versions: 27

Compression:

Stored size: 696 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

class DumpParseError < AgentError
end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
flydata-0.5.6 lib/flydata/errors.rb
flydata-0.5.5 lib/flydata/errors.rb
flydata-0.5.4 lib/flydata/errors.rb
flydata-0.5.3 lib/flydata/errors.rb
flydata-0.5.2 lib/flydata/errors.rb
flydata-0.5.1 lib/flydata/errors.rb
flydata-0.5.0 lib/flydata/errors.rb
flydata-0.4.3 lib/flydata/errors.rb
flydata-0.4.2 lib/flydata/errors.rb
flydata-0.4.1 lib/flydata/errors.rb
flydata-0.4.0 lib/flydata/errors.rb
flydata-0.3.24 lib/flydata/errors.rb
flydata-0.3.23 lib/flydata/errors.rb
flydata-0.3.22 lib/flydata/errors.rb
flydata-0.3.21 lib/flydata/errors.rb
flydata-0.3.20 lib/flydata/errors.rb
flydata-0.3.19 lib/flydata/errors.rb
flydata-0.3.18 lib/flydata/errors.rb
flydata-0.3.17 lib/flydata/errors.rb
flydata-0.3.16 lib/flydata/errors.rb