Class BaseException
Inheritance
Implements
Inherited Members
Namespace: Innovt.Core.Exceptions
Assembly: Innovt.Core.dll
Syntax
[Serializable]
public class BaseException : Exception, ISerializable
Constructors
| Edit this page View SourceBaseException()
Initializes a new instance of the BaseException class.
Declaration
public BaseException()
BaseException(Exception)
Initializes a new instance of the BaseException class with a reference to the inner exception that is the cause of this exception.
Declaration
public BaseException(Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
BaseException(SerializationInfo, StreamingContext)
Initializes a new instance of the BaseException class with serialized data.
Declaration
protected BaseException(SerializationInfo serializationInfo, StreamingContext streamingContext)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | serializationInfo | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | streamingContext | The StreamingContext that contains contextual information about the source or destination. |
BaseException(string)
Initializes a new instance of the BaseException class with a specified error message.
Declaration
public BaseException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception. |
BaseException(string, Exception)
Initializes a new instance of the BaseException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public BaseException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception. |
Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |