[Chromoting] Move webapp files based on new directory structure:
[chromium-blink-merge.git] / remoting / webapp / crd / js / error.js
blob1b81a33506571353ce84df34c25c3955e78a2e77
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.
5 'use strict';
7 /** @suppress {duplicate} */
8 var remoting = remoting || {};
10 /**
11  * @enum {string} All error messages from messages.json
12  */
13 remoting.Error = {
14   NONE: '',
16   // Used to signify that an operation was cancelled by the user. This should
17   // not normally cause the error text to be shown to the user, so the
18   // i18n-content prefix is not needed in this case.
19   CANCELLED: '__CANCELLED__',
21   INVALID_ACCESS_CODE: /*i18n-content*/'ERROR_INVALID_ACCESS_CODE',
22   MISSING_PLUGIN: /*i18n-content*/'ERROR_MISSING_PLUGIN',
23   AUTHENTICATION_FAILED: /*i18n-content*/'ERROR_AUTHENTICATION_FAILED',
24   HOST_IS_OFFLINE: /*i18n-content*/'ERROR_HOST_IS_OFFLINE',
25   INCOMPATIBLE_PROTOCOL: /*i18n-content*/'ERROR_INCOMPATIBLE_PROTOCOL',
26   BAD_PLUGIN_VERSION: /*i18n-content*/'ERROR_BAD_PLUGIN_VERSION',
27   NETWORK_FAILURE: /*i18n-content*/'ERROR_NETWORK_FAILURE',
28   HOST_OVERLOAD: /*i18n-content*/'ERROR_HOST_OVERLOAD',
29   UNEXPECTED: /*i18n-content*/'ERROR_UNEXPECTED',
30   SERVICE_UNAVAILABLE: /*i18n-content*/'ERROR_SERVICE_UNAVAILABLE',
31   NOT_AUTHENTICATED: /*i18n-content*/'ERROR_NOT_AUTHENTICATED',
32   INVALID_HOST_DOMAIN: /*i18n-content*/'ERROR_INVALID_HOST_DOMAIN',
33   P2P_FAILURE: /*i18n-content*/'ERROR_P2P_FAILURE',
34   REGISTRATION_FAILED: /*i18n-content*/'ERROR_HOST_REGISTRATION_FAILED'