Smrf.NodeXL.ExcelTemplate.GraphMLToNodeXLWorkbookConverter.OnException C# (CSharp) Method

OnException() private static method

private static OnException ( Exception oException, ErrorCode eErrorCode, String sErrorMessage ) : void
oException System.Exception
eErrorCode ErrorCode
sErrorMessage String
return void
    OnException
    (
        Exception oException,
        ErrorCode eErrorCode,
        String sErrorMessage
    )
    {
        Debug.Assert(oException != null);
        Debug.Assert( !String.IsNullOrEmpty(sErrorMessage) );

        throw new ConvertGraphMLToNodeXLWorkbookException(eErrorCode,

            String.Format(

                "{0}  Details:"
                + "\r\n\r\n"
                + "{1}."
                ,
                sErrorMessage,
                oException.Message
                ) );
    }
}