SerializationException.java revision 645501c2ab19a559ce82a1d5a29ced159a4c30fb
1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5package org.chromium.mojo.bindings;
6
7/**
8 * Error that can be thrown when serializing a mojo message.
9 */
10public class SerializationException extends RuntimeException {
11
12    /**
13     * Constructs a new serialization exception with the specified detail message.
14     */
15    public SerializationException(String message) {
16        super(message);
17    }
18
19    /**
20     * Constructs a new serialization exception with the specified cause.
21     */
22    public SerializationException(Exception cause) {
23        super(cause);
24    }
25
26}
27