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 5 package org.chromium.mojo.bindings; 6 7 /** 8 * Error when deserializing a mojo message. 9 */ 10 public class DeserializationException extends RuntimeException { 11 12 /** 13 * Constructs a new deserialization exception with the specified detail message. 14 */ DeserializationException(String message)15 public DeserializationException(String message) { 16 super(message); 17 } 18 19 /** 20 * Constructs a new deserialization exception with the specified cause. 21 */ DeserializationException(Exception cause)22 public DeserializationException(Exception cause) { 23 super(cause); 24 } 25 26 } 27