dcb40deeae8f608d9eadeb1d2672e9e8f0b1a35c
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / error / InvalidEncodingException.java
1 /*
2  * Copyright (c) 2013, 2015 EBay Software Foundation 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
9 package org.opendaylight.ovsdb.lib.error;
10
11 /**
12  * InvalidEncodingException in cases where something is not UTF-8 Encoded.
13  */
14 public class InvalidEncodingException extends RuntimeException {
15
16     private final String actual;
17
18     public InvalidEncodingException(String actual, String message) {
19         super(message);
20         this.actual = actual;
21     }
22
23     public String getActual() {
24         return actual;
25     }
26 }