Class LinqToDBException
Defines the base class for the namespace exceptions.
Inherited Members
Namespace: LinqToDB
Assembly: linq2db.dll
Syntax
[Serializable]
public class LinqToDBException : Exception, ISerializable, _Exception
Remarks
This class is the base class for exceptions that may occur during execution of the namespace members.
Constructors
| Improve this Doc View SourceLinqToDBException()
Initializes a new instance of the LinqToDBException class.
Declaration
public LinqToDBException()
Remarks
This constructor initializes the Message property of the new instance such as "A Build Type exception has occurred.".
LinqToDBException(Exception)
Initializes a new instance of the LinqToDBException class with the specified InnerException property.
Declaration
public LinqToDBException(Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
Exception | innerException | The InnerException, if any, that threw the current exception. |
Remarks
This class is the base class for exceptions that may occur during execution of the namespace members.
See Also
| Improve this Doc View SourceLinqToDBException(SerializationInfo, StreamingContext)
Initializes a new instance of the LinqToDBException class with serialized data.
Declaration
protected LinqToDBException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The object that holds the serialized object data. |
StreamingContext | context | The contextual information about the source or destination. |
Remarks
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.
LinqToDBException(string, Exception)
Initializes a new instance of the LinqToDBException class with the specified error message and InnerException property.
Declaration
public LinqToDBException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to display to the client when the exception is thrown. |
Exception | innerException | The InnerException, if any, that threw the current exception. |
Remarks
This class is the base class for exceptions that may occur during execution of the namespace members.
See Also
| Improve this Doc View SourceLinqToDBException(string)
Initializes a new instance of the LinqToDBException class with the specified error message.
Declaration
public LinqToDBException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message to display to the client when the exception is thrown. |
Remarks
This class is the base class for exceptions that may occur during execution of the namespace members.