Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: chrome/browser/resources/cryptotoken/errorcodes.js

Issue 607913003: Improved error reporting in cryptotoken (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Error codes reported by top-level request handlers. 6 * @fileoverview Errors reported by top-level request handlers.
7 */ 7 */
8 'use strict'; 8 'use strict';
9 9
10 /** 10 /**
11 * Response status codes 11 * Response status codes
12 * @const 12 * @const
13 * @enum {number} 13 * @enum {number}
14 */ 14 */
15 var ErrorCodes = { 15 var ErrorCodes = {
16 'OK': 0, 16 'OK': 0,
17 'OTHER_ERROR': 1, 17 'OTHER_ERROR': 1,
18 'BAD_REQUEST': 2, 18 'BAD_REQUEST': 2,
19 'CONFIGURATION_UNSUPPORTED': 3, 19 'CONFIGURATION_UNSUPPORTED': 3,
20 'DEVICE_INELIGIBLE': 4, 20 'DEVICE_INELIGIBLE': 4,
21 'TIMEOUT': 5 21 'TIMEOUT': 5
22 }; 22 };
23
24 /**
25 * An error object for responses
26 * @typedef {{
27 * errorCode: ErrorCodes,
28 * errorMessage: (?string|undefined)
29 * }}
30 */
31 var U2fError;
OLDNEW
« no previous file with comments | « chrome/browser/resources/cryptotoken/enroller.js ('k') | chrome/browser/resources/cryptotoken/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698