blob: 683e9c50d194a185ce05a8b97f369c1e2efcfa0c [file] [log] [blame]
Felix Meschberger1fd58292009-10-02 12:59:27 +00001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19package org.apache.felix.scrplugin;
20
Felix Meschbergerd6b7f212009-10-06 12:41:34 +000021
Carsten Ziegeler55c96d32012-06-13 12:03:35 +000022public class SCRDescriptorException extends Exception {
Felix Meschberger1fd58292009-10-02 12:59:27 +000023
Carsten Ziegeler9a496fe2012-06-27 06:20:28 +000024 private static final long serialVersionUID = 2L;
Felix Meschberger1fd58292009-10-02 12:59:27 +000025
Felix Meschbergerd6b7f212009-10-06 12:41:34 +000026 private final String m_sourceLocation;
27
Carsten Ziegeler9a496fe2012-06-27 06:20:28 +000028 public SCRDescriptorException( final String message, final String sourceLocation ) {
Felix Meschbergerd6b7f212009-10-06 12:41:34 +000029 super( message );
30 this.m_sourceLocation = sourceLocation;
Felix Meschbergerd6b7f212009-10-06 12:41:34 +000031 }
32
33
Carsten Ziegeler9a496fe2012-06-27 06:20:28 +000034 public SCRDescriptorException( final String message, final Throwable cause ) {
35 this( message, null, cause );
Felix Meschbergerd6b7f212009-10-06 12:41:34 +000036 }
37
38
Carsten Ziegeler9a496fe2012-06-27 06:20:28 +000039 public SCRDescriptorException( final String message, final String sourceLocation,
40 final Throwable cause ) {
Felix Meschbergerd6b7f212009-10-06 12:41:34 +000041 super( message, cause );
42 this.m_sourceLocation = sourceLocation;
Felix Meschbergerd6b7f212009-10-06 12:41:34 +000043 }
44
45
Carsten Ziegeler9a496fe2012-06-27 06:20:28 +000046 public String getSourceLocation() {
Felix Meschbergerd6b7f212009-10-06 12:41:34 +000047 return m_sourceLocation;
48 }
Felix Meschberger1fd58292009-10-02 12:59:27 +000049}