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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/omaha/RequestFailureException.java

Issue 67313003: Upstream the updated Java Omaha XML parser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove prod requirement Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
nyquist 2014/01/23 00:54:02 How do you feel about changing all of these header
gone 2014/01/24 07:43:12 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.omaha;
6
7 /**
8 * Serves as a general exception for failed POST requests to the Omaha Update Se rver.
9 */
10 public class RequestFailureException extends Exception {
11 public static final int ERROR_UNDEFINED = 0;
12 public static final int ERROR_MALFORMED_XML = 1;
13 public static final int ERROR_PARSE_ROOT = 2;
14 public static final int ERROR_PARSE_RESPONSE = 3;
15 public static final int ERROR_PARSE_DAYSTART = 4;
16 public static final int ERROR_PARSE_APP = 5;
17 public static final int ERROR_PARSE_PING = 6;
18 public static final int ERROR_PARSE_EVENT = 7;
19 public static final int ERROR_PARSE_URLS = 8;
20 public static final int ERROR_PARSE_UPDATECHECK = 9;
21 public static final int ERROR_PARSE_MANIFEST = 10;
22
23 public int errorCode = ERROR_UNDEFINED;
24
25 public RequestFailureException(String message) {
26 this(message, ERROR_UNDEFINED);
27 }
28
29 public RequestFailureException(String message, int error) {
30 super(message);
31 errorCode = error;
32 }
33
34 public RequestFailureException(String message, Throwable cause) {
35 this(message, cause, ERROR_UNDEFINED);
36 }
37
38 public RequestFailureException(String message, Throwable cause, int error) {
39 super(message, cause);
40 errorCode = error;
41 }
42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698