Class ReportException
The exceptions thrown when errors occur in Reporter objects.
public class ReportException : Exception, ISerializable, _Exception
- Inheritance
-
ReportException
- Implements
- Inherited Members
Constructors
ReportException()
Initializes a new instance of the ReportException class.
public ReportException()
ReportException(SerializationInfo, StreamingContext)
Initializes a new instance of the ReportException class with serialized data.
protected ReportException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
ReportException(string)
Initializes a new instance of the ReportException class with the specified error message.
public ReportException(string message)
Parameters
messagestringThe error message with the reason for this exception.
ReportException(string, Exception)
Initializes a new instance of the ReportException class with the specified error message and a reference to the inner exception that is the cause of this exception.
public ReportException(string message, Exception exception)
Parameters
messagestringThe error message with the reason for this exception.
exceptionExceptionThe inner exception that caused this exception.
Properties
ErrorCode
The error code associated with the exception, if applicable.
public int ErrorCode { get; }