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

Unified Diff: third_party/mojo/src/mojo/public/java/system/src/org/chromium/mojo/system/MojoException.java

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/mojo/src/mojo/public/java/system/src/org/chromium/mojo/system/MojoException.java
diff --git a/third_party/mojo/src/mojo/public/java/system/src/org/chromium/mojo/system/MojoException.java b/third_party/mojo/src/mojo/public/java/system/src/org/chromium/mojo/system/MojoException.java
deleted file mode 100644
index 4e0e3e959713dc5ce37663f098606e09b0102667..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/public/java/system/src/org/chromium/mojo/system/MojoException.java
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.mojo.system;
-
-/**
- * Exception for the core mojo API.
- */
-public class MojoException extends RuntimeException {
-
- private final int mCode;
-
- /**
- * Constructor.
- */
- public MojoException(int code) {
- mCode = code;
- }
-
- /**
- * Constructor.
- */
- public MojoException(Throwable cause) {
- super(cause);
- mCode = MojoResult.UNKNOWN;
- }
-
- /**
- * The mojo result code associated with this exception. See {@link MojoResult} for possible
- * values.
- */
- public int getMojoResult() {
- return mCode;
- }
-
- /**
- * @see Object#toString()
- */
- @Override
- public String toString() {
- return "MojoResult(" + mCode + "): " + MojoResult.describe(mCode);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698