blob: 89d5510c4829552e830e6392186af636456a3ef5 [file] [log] [blame]
Carmelo Cascone8d99b172017-07-18 17:26:31 -04001/*
Carmelo Cascone99c59db2019-01-17 15:39:35 -08002 * Copyright 2019-present Open Networking Foundation
Carmelo Cascone8d99b172017-07-18 17:26:31 -04003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.p4runtime.ctl;
18
19/**
Carmelo Cascone99c59db2019-01-17 15:39:35 -080020 * Signals an error during encoding/decoding of a PI entity/protobuf message.
Carmelo Cascone8d99b172017-07-18 17:26:31 -040021 */
Carmelo Cascone99c59db2019-01-17 15:39:35 -080022public final class CodecException extends Exception {
Carmelo Cascone8d99b172017-07-18 17:26:31 -040023
Carmelo Cascone99c59db2019-01-17 15:39:35 -080024 /**
25 * Ceeates anew exception with the given explanation message.
26 * @param explanation explanation
27 */
28 public CodecException(String explanation) {
Carmelo Cascone8d99b172017-07-18 17:26:31 -040029 super(explanation);
30 }
31}