blob: 821a51482156858e98b76519c3a04619761e4a28 [file] [log] [blame]
Sean Condon8d338b52019-03-21 20:20:58 +00001/*
2 * Copyright 2019-present Open Networking Foundation
3 *
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 */
16package org.onosproject.provider.nil.cli;
17
18/**
19 * Represents that there is no location (free port) available on the device to add a host or link to.
20 */
21public class NoLocationException extends RuntimeException {
22
23 /**
24 * Constructs an exception with no message and no underlying cause.
25 */
26 public NoLocationException() {
27 }
28
29 /**
30 * Constructs an exception with the specified message.
31 *
32 * @param message the message describing the specific nature of the error
33 */
34 public NoLocationException(String message) {
35 super(message);
36 }
37
38 /**
39 * Constructs an exception with the specified message and the underlying cause.
40 *
41 * @param message the message describing the specific nature of the error
42 * @param cause the underlying cause of this error
43 */
44 public NoLocationException(String message, Throwable cause) {
45 super(message, cause);
46 }
47}