blob: 31e82d5dba11756604f7452ff75932a88f0e1c63 [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
Sho SHIMIZU67f94862015-07-02 17:08:40 -070018import com.google.common.annotations.Beta;
19
Ray Milkey9a39eca2015-01-05 09:41:01 -080020/**
21 * Represents a resource related error.
22 */
Sho SHIMIZU67f94862015-07-02 17:08:40 -070023@Beta
Ray Milkey9a39eca2015-01-05 09:41:01 -080024public class ResourceException extends RuntimeException {
25
26 /**
27 * Constructs an exception with no message and no underlying cause.
28 */
29 public ResourceException() {
30 }
31
32 /**
33 * Constructs an exception with the specified message.
34 *
35 * @param message the message describing the specific nature of the error
36 */
37 public ResourceException(String message) {
38 super(message);
39 }
40
41 /**
42 * Constructs an exception with the specified message and the underlying cause.
43 *
44 * @param message the message describing the specific nature of the error
45 * @param cause the underlying cause of this error
46 */
47 public ResourceException(String message, Throwable cause) {
48 super(message, cause);
49 }
50
51}