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

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

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/java/system/src/org/chromium/mojo/system/MojoException.java
diff --git a/mojo/public/java/system/src/org/chromium/mojo/system/MojoException.java b/mojo/public/java/system/src/org/chromium/mojo/system/MojoException.java
deleted file mode 100644
index e06f647aeb023bcf85c23a802234f8698c823f41..0000000000000000000000000000000000000000
--- a/mojo/public/java/system/src/org/chromium/mojo/system/MojoException.java
+++ /dev/null
@@ -1,36 +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;
- }
-
- /**
- * 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