Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).

This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public FieldReaderException(
	Exception cause
)
Visual Basic
Public Sub New ( _
	cause As Exception _
)
Visual C++
public:
FieldReaderException(
	Exception^ cause
)

Parameters

cause
Type: System..::..Exception
the cause (which is saved for later retrieval by the {@link #InnerException()} method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

See Also