blob: d527206753a5b0bc67cec0544bad688ecd6166e2 [file] [log] [blame]
Ray Milkey9a39eca2015-01-05 09:41:01 -08001/*
2 * Copyright 2015 Open Networking Laboratory
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.net.resource;
17
18/**
19 * Represents a resource related error.
20 */
21public class ResourceException extends RuntimeException {
22
23 /**
24 * Constructs an exception with no message and no underlying cause.
25 */
26 public ResourceException() {
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 ResourceException(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 ResourceException(String message, Throwable cause) {
45 super(message, cause);
46 }
47
48}