Class ReportException
The exceptions thrown when errors occur in Reporter objects.
Inherited Members
Namespace: HP.LFT.Report
Assembly: HP.LFT.Report.dll
Syntax
public class ReportException : Exception, ISerializable, _Exception
Constructors
ReportException()
Initializes a new instance of the ReportException class.
Declaration
public ReportException()
ReportException(SerializationInfo, StreamingContext)
Initializes a new instance of the ReportException class with serialized data.
Declaration
protected ReportException(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
| StreamingContext | context | The 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.
Declaration
public ReportException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The 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.
Declaration
public ReportException(string message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message with the reason for this exception. |
| Exception | exception | The inner exception that caused this exception. |
Properties
ErrorCode
The error code associated with the exception, if applicable.
Declaration
public int ErrorCode { get; }
Property Value
| Type | Description |
|---|---|
| int |