Home | History | Annotate | Download | only in webapp
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 'use strict';
      6 
      7 /** @suppress {duplicate} */
      8 var remoting = remoting || {};
      9 
     10 /**
     11  * @enum {string} All error messages from messages.json
     12  */
     13 remoting.Error = {
     14   // Used to signify that an operation was cancelled by the user. This should
     15   // not normally cause the error text to be shown to the user, so the
     16   // i18n-content prefix is not needed in this case.
     17   CANCELLED: '__CANCELLED__',
     18 
     19   INVALID_ACCESS_CODE: /*i18n-content*/'ERROR_INVALID_ACCESS_CODE',
     20   MISSING_PLUGIN: /*i18n-content*/'ERROR_MISSING_PLUGIN',
     21   AUTHENTICATION_FAILED: /*i18n-content*/'ERROR_AUTHENTICATION_FAILED',
     22   HOST_IS_OFFLINE: /*i18n-content*/'ERROR_HOST_IS_OFFLINE',
     23   INCOMPATIBLE_PROTOCOL: /*i18n-content*/'ERROR_INCOMPATIBLE_PROTOCOL',
     24   BAD_PLUGIN_VERSION: /*i18n-content*/'ERROR_BAD_PLUGIN_VERSION',
     25   NETWORK_FAILURE: /*i18n-content*/'ERROR_NETWORK_FAILURE',
     26   HOST_OVERLOAD: /*i18n-content*/'ERROR_HOST_OVERLOAD',
     27   UNEXPECTED: /*i18n-content*/'ERROR_UNEXPECTED',
     28   SERVICE_UNAVAILABLE: /*i18n-content*/'ERROR_SERVICE_UNAVAILABLE',
     29   NOT_AUTHENTICATED: /*i18n-content*/'ERROR_NOT_AUTHENTICATED',
     30   INVALID_HOST_DOMAIN: /*i18n-content*/'ERROR_INVALID_HOST_DOMAIN',
     31   P2P_FAILURE: /*i18n-content*/'ERROR_P2P_FAILURE',
     32   REGISTRATION_FAILED: /*i18n-content*/'ERROR_HOST_REGISTRATION_FAILED'
     33 };
     34