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

Unified Diff: third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/error.py

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/tools/bindings/pylib/mojom/error.py
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/error.py b/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/error.py
deleted file mode 100644
index 99522b9507f756d171087467eb63fe6f5e2eddd6..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/error.py
+++ /dev/null
@@ -1,27 +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.
-
-class Error(Exception):
- """Base class for Mojo IDL bindings parser/generator errors."""
-
- def __init__(self, filename, message, lineno=None, addenda=None, **kwargs):
- """|filename| is the (primary) file which caused the error, |message| is the
- error message, |lineno| is the 1-based line number (or |None| if not
- applicable/available), and |addenda| is a list of additional lines to append
- to the final error message."""
- Exception.__init__(self, **kwargs)
- self.filename = filename
- self.message = message
- self.lineno = lineno
- self.addenda = addenda
-
- def __str__(self):
- if self.lineno:
- s = "%s:%d: Error: %s" % (self.filename, self.lineno, self.message)
- else:
- s = "%s: Error: %s" % (self.filename, self.message)
- return "\n".join([s] + self.addenda) if self.addenda else s
-
- def __repr__(self):
- return str(self)

Powered by Google App Engine
This is Rietveld 408576698