Sha256: b5028c78bd3b0076c9545ff16253eed133537b8fd740d93b5da3855703a9862f

Contents?: true

Size: 1.52 KB

Versions: 132

Compression:

Stored size: 1.52 KB

Contents

module Rho
  class RhoError < Exception
    def self.err_message(code)
        if code == ERR_NETWORK
            return "Could not establish network connection."
        elsif code == ERR_REMOTESERVER
            return "Server returned an error."
        elsif code ==  ERR_RUNTIME
            return "Application has encountered an error and must close."
        elsif code ==  ERR_UNEXPECTEDSERVERRESPONSE
            return "Sync server returned an unexpected response."
        elsif code ==  ERR_DIFFDOMAINSINSYNCSRC
            return "All sync sources should be from one domain.Re-install the application."
        elsif code ==  ERR_NOSERVERRESPONSE
            return "Could not connect to sync server."
        elsif code ==  ERR_CLIENTISNOTLOGGEDIN
            return "Client is not logged in. No sync will be performed."
        elsif code ==  ERR_CUSTOMSYNCSERVER
            return "Could not connect to data server."
        elsif code ==  ERR_UNATHORIZED
            return "You entered an invalid login/password, please try again."
        elsif code ==  ERR_CANCELBYUSER
            return "Operation was cancelled by user."
        elsif code ==  ERR_SYNCVERSION
            return "Connection terminated by server. Your mobile application needs to be updated. Please contact your administrator."
        elsif code ==  ERR_GEOLOCATION
            return "Location could not be determined."
        elsif code ==  ERR_NONE
            return ""
        end
        
        return "Unknown error"
    end
    
  end # RhoError
end # Rho

Version data entries

132 entries across 132 versions & 2 rubygems

Version Path
rhodes-7.6.0 lib/framework/rholang/rhoerror_en.rb
rhodes-7.5.1 lib/framework/rholang/rhoerror_en.rb
rhodes-7.4.1 lib/framework/rholang/rhoerror_en.rb
rhodes-7.1.17 lib/framework/rholang/rhoerror_en.rb
rhodes-6.2.0 lib/framework/rholang/rhoerror_en.rb
rhodes-6.0.11 lib/framework/rholang/rhoerror_en.rb
rhodes-5.5.18 lib/framework/rholang/rhoerror_en.rb
rhodes-5.5.17 lib/framework/rholang/rhoerror_en.rb
rhodes-5.5.15 lib/framework/rholang/rhoerror_en.rb
rhodes-5.5.0.22 lib/framework/rholang/rhoerror_en.rb
rhodes-5.5.2 lib/framework/rholang/rhoerror_en.rb
rhodes-5.5.0.7 lib/framework/rholang/rhoerror_en.rb
rhodes-5.5.0.3 lib/framework/rholang/rhoerror_en.rb
rhodes-5.5.0 lib/framework/rholang/rhoerror_en.rb
tauplatform-1.0.3 lib/framework/rholang/rhoerror_en.rb
tauplatform-1.0.2 lib/framework/rholang/rhoerror_en.rb
tauplatform-1.0.1 lib/framework/rholang/rhoerror_en.rb
rhodes-3.5.1.12 lib/framework/rholang/rhoerror_en.rb
rhodes-3.3.5 lib/framework/rholang/rhoerror_en.rb
rhodes-3.4.2 lib/framework/rholang/rhoerror_en.rb