Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
FieldReaderException.cs
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 using System;
19 
20 namespace Lucene.Net.Index
21 {
22 
23  /// <summary>
24  ///
25  ///
26  /// </summary>
27  [Serializable]
28  public class FieldReaderException:System.SystemException
29  {
30  /// <summary> Constructs a new runtime exception with <c>null</c> as its
31  /// detail message. The cause is not initialized, and may subsequently be
32  /// initialized by a call to <see cref="Exception.InnerException" />.
33  /// </summary>
35  {
36  }
37 
38  /// <summary> Constructs a new runtime exception with the specified cause and a
39  /// detail message of <tt>(cause==null &#63; null : cause.toString())</tt>
40  /// (which typically contains the class and detail message of
41  /// <tt>cause</tt>).
42  /// <p/>
43  /// This constructor is useful for runtime exceptions
44  /// that are little more than wrappers for other throwables.
45  ///
46  /// </summary>
47  /// <param name="cause">the cause (which is saved for later retrieval by the
48  /// <see cref="Exception.InnerException" />). (A <tt>null</tt> value is
49  /// permitted, and indicates that the cause is nonexistent or
50  /// unknown.)
51  /// </param>
52  /// <since> 1.4
53  /// </since>
54  public FieldReaderException(System.Exception cause):base((cause == null)?null:cause.Message, cause)
55  {
56  }
57 
58  /// <summary> Constructs a new runtime exception with the specified detail message.
59  /// The cause is not initialized, and may subsequently be initialized by a
60  /// call to <see cref="Exception.InnerException" />.
61  ///
62  /// </summary>
63  /// <param name="message">the detail message. The detail message is saved for
64  /// later retrieval by the <see cref="Exception.Message" /> method.
65  /// </param>
66  public FieldReaderException(System.String message):base(message)
67  {
68  }
69 
70  /// <summary> Constructs a new runtime exception with the specified detail message and
71  /// cause. <p/>Note that the detail message associated with
72  /// <c>cause</c> is <i>not</i> automatically incorporated in
73  /// this runtime exception's detail message.
74  ///
75  /// </summary>
76  /// <param name="message">the detail message (which is saved for later retrieval
77  /// by the <see cref="Exception.Message" /> method).
78  /// </param>
79  /// <param name="cause"> the cause (which is saved for later retrieval by the
80  /// <see cref="Exception.InnerException" /> method). (A <tt>null</tt> value is
81  /// permitted, and indicates that the cause is nonexistent or
82  /// unknown.)
83  /// </param>
84  /// <since> 1.4
85  /// </since>
86  public FieldReaderException(System.String message, System.Exception cause):base(message, cause)
87  {
88  }
89  }
90 }