Initializes a new instance of the MediaWriterException class with a specified error message, its Code set to a specified MediaWriterExceptionCode value and its inner exception set to a null reference.
message
The error message that explains the reason for the exception.
code
flag that indicates the code causing the exception.
The constructor initializes the Message property of the new instance using message.