Promote codec exceptions to binding.codec.api
[mdsal.git] / binding / mdsal-binding-dom-codec-api / src / main / java / org / opendaylight / mdsal / binding / dom / codec / api / MissingSchemaException.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.mdsal.binding.dom.codec.api;
9
10 import com.google.common.annotations.Beta;
11
12 /**
13  * Thrown when codec was used with data which are not modeled and available in schema used by codec.
14  */
15 @Beta
16 public class MissingSchemaException extends IllegalArgumentException {
17     private static final long serialVersionUID = 1L;
18
19     public MissingSchemaException(final String msg) {
20         super(msg);
21     }
22
23     public MissingSchemaException(final String msg, final Throwable cause) {
24         super(msg, cause);
25     }
26 }