Add generated serialVersionUUID to exceptions
[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 package org.opendaylight.ovsdb.lib.error;
9
10 /**
11  * InvalidEncodingException in cases where something is not UTF-8 Encoded.
12  */
13 public class InvalidEncodingException extends RuntimeException {
14     private static final long serialVersionUID = -6333965543652086978L;
15
16     private final String actual;
17
18     public InvalidEncodingException(final String actual, final String message) {
19         super(message);
20         this.actual = actual;
21     }
22
23     public String getActual() {
24         return actual;
25     }
26 }