Index: mojo/public/java/bindings/src/org/chromium/mojo/bindings/SerializationException.java |
diff --git a/mojo/public/java/bindings/src/org/chromium/mojo/bindings/SerializationException.java b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/SerializationException.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d4f550227fea31a61b912c03ec1be2717bd7a301 |
--- /dev/null |
+++ b/mojo/public/java/bindings/src/org/chromium/mojo/bindings/SerializationException.java |
@@ -0,0 +1,26 @@ |
+// 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.bindings; |
+ |
+/** |
+ * Error that can be thrown when serializing a mojo message. |
+ */ |
+public class SerializationException extends RuntimeException { |
+ |
+ /** |
+ * Constructs a new serialization exception with the specified detail message. |
+ */ |
+ public SerializationException(String message) { |
+ super(message); |
+ } |
+ |
+ /** |
+ * Constructs a new serialization exception with the specified cause. |
+ */ |
+ public SerializationException(Exception cause) { |
+ super(cause); |
+ } |
+ |
+} |