In This Article

ExceptionBase Class

A base class for exceptions thrown from Actipro products.

public abstract class ExceptionBase : ApplicationException
Inheritance:
object Exception ApplicationException object

Constructors

ExceptionBase()

Initializes a new instance of the ExceptionBase class.

public ExceptionBase()

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "An application error has occurred." This message takes into account the current system culture.

ExceptionBase(SerializationInfo, StreamingContext)

Initializes a new instance of the ExceptionBase class with serialized data.

public ExceptionBase(SerializationInfo info, StreamingContext context)
Parameter Type Description
info SerializationInfo

The object that holds the serialized object data.

context StreamingContext

The contextual information about the source or destination.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

ExceptionBase(string)

Initializes a new instance of the ExceptionBase class with a specified error message.

public ExceptionBase(string message)
Parameter Type Description
message string

A message that describes the error.

Remarks

The content of the message parameter is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

ExceptionBase(string, Exception)

Initializes a new instance of the ExceptionBase class with a specified error message and a reference to the inner exception that is the cause of this exception..

public ExceptionBase(string message, Exception innerException)
Parameter Type Description
message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.

Remarks

The content of the message parameter is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

Inherited Members