Constructs a new runtime exception with the specified detail message and cause.

Note that the detail message associated with

CopyC#
cause
is not automatically incorporated in this runtime exception's detail message.

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

Syntax

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

Parameters

message
Type: System..::..String
the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
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