public void BuildHTML(string htmlfilenaddress, string htmlstring) { try { using (FileStream fs = new FileStream(htmlfilenaddress, FileMode.Create)) { using (StreamWriter writer = new StreamWriter(fs, Encoding.UTF8)) { writer.Write(htmlstringbegin + htmlstring + htmlstringend); } } } catch (NotImplementedException) { throw new NotImplementedException(); } }I want the exception to be caught when the writer writes null value.Thank you.