Constructor SoundCardException
SoundCardException()
Initializes a new instance of the SoundCardException class.
public SoundCardException()
SoundCardException(string)
Initializes a new instance of the SoundCardException class with a specified error message.
public SoundCardException(string message)
Parameters
messagestringThe message that describes the error.
SoundCardException(string, Exception)
Initializes a new instance of the SoundCardException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public SoundCardException(string message, Exception innerException)
Parameters
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
SoundCardException(SerializationInfo, StreamingContext)
Initializes a new instance of the Exception class with serialized data.
protected SoundCardException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
infoparameter is null.- SerializationException
The class name is null or HResult is zero (0).