System.Net.CommandStream.GenerateException C# (CSharp) Method

GenerateException() protected method

protected GenerateException ( FtpStatusCode code, string statusDescription, Exception innerException ) : Exception
code FtpStatusCode
statusDescription string
innerException System.Exception
return System.Exception
        protected Exception GenerateException(FtpStatusCode code, string statusDescription, Exception innerException)
        {
            return new WebException(SR.Format(SR.net_ftp_servererror, NetRes.GetWebStatusCodeString(code, statusDescription)),
                                    innerException, WebExceptionStatus.ProtocolError, null);
        }

Same methods

CommandStream::GenerateException ( string message, WebExceptionStatus status, Exception innerException ) : Exception