blob: 6ef77f2a50ac35321bd560b7f21234dafee78898 [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
Carmelo Cascone4c289b72019-01-22 15:30:45 -080017package org.onosproject.p4runtime.ctl.codec;
Carmelo Cascone8d99b172017-07-18 17:26:31 -040018
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 /**
Carmelo Cascone4c289b72019-01-22 15:30:45 -080025 * Creates a new exception with the given explanation message.
26 *
Carmelo Cascone99c59db2019-01-17 15:39:35 -080027 * @param explanation explanation
28 */
29 public CodecException(String explanation) {
Carmelo Cascone8d99b172017-07-18 17:26:31 -040030 super(explanation);
31 }
32}