1 /*
2 * Copyright 2004 Sun Microsystems, Inc.
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 *
16 */
17 package com.sun.syndication.io;
18
19 /***
20 * Exception thrown by FeedInput, FeedOutput, FeedParser and FeedGenerator instances if they
21 * can not parse or generate a feed.
22 * <p>
23 * @author Alejandro Abdelnur
24 *
25 */
26 public class FeedException extends Exception {
27
28 /***
29 * Creates a FeedException with a message.
30 * <p>
31 * @param msg exception message.
32 *
33 */
34 public FeedException(String msg) {
35 super(msg);
36 }
37
38 /***
39 * Creates a FeedException with a message and a root cause exception.
40 * <p>
41 * @param msg exception message.
42 * @param rootCause root cause exception.
43 *
44 */
45 public FeedException(String msg,Throwable rootCause) {
46 super(msg,rootCause);
47 }
48
49 }