Class LinqToDBException
- Namespace
- LinqToDB
- Assembly
- linq2db.dll
Defines the base class for the namespace exceptions.
[Serializable]
public class LinqToDBException : Exception, ISerializable, _Exception
- Inheritance
-
LinqToDBException
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
This class is the base class for exceptions that may occur during execution of the namespace members.
Constructors
LinqToDBException()
Initializes a new instance of the LinqToDBException class.
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.
public LinqToDBException(Exception innerException)
Parameters
innerException
ExceptionThe InnerException, if any, that threw the current exception.
- See Also
LinqToDBException(SerializationInfo, StreamingContext)
Initializes a new instance of the LinqToDBException class with serialized data.
protected LinqToDBException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe object that holds the serialized object data.
context
StreamingContextThe 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)
Initializes a new instance of the LinqToDBException class with the specified error message.
public LinqToDBException(string message)
Parameters
message
stringThe message to display to the client when the exception is thrown.
- See Also
LinqToDBException(string, Exception)
Initializes a new instance of the LinqToDBException class with the specified error message and InnerException property.
public LinqToDBException(string message, Exception innerException)
Parameters
message
stringThe message to display to the client when the exception is thrown.
innerException
ExceptionThe InnerException, if any, that threw the current exception.
- See Also