function _displayCreationError(e, errorInfo) {
        window.setTimeout(function () {
            var error = errorInfo.type,
                isFolder = errorInfo.isFolder,
                name = errorInfo.name;

            if (error === FileSystemError.ALREADY_EXISTS) {
                _showErrorDialog(ERR_TYPE_CREATE_EXISTS, isFolder, null, name);
            } else if (error === ProjectModel.ERROR_INVALID_FILENAME) {
                _showErrorDialog(ERR_TYPE_INVALID_FILENAME, isFolder, ProjectModel._invalidChars);
            } else {
                var errString = error === FileSystemError.NOT_WRITABLE ?
                        Strings.NO_MODIFICATION_ALLOWED_ERR :
                        StringUtils.format(Strings.GENERIC_ERROR, error);

                _showErrorDialog(ERR_TYPE_CREATE, isFolder, errString, name).getPromise();
            }
        }, 10);
    }
function _displayCreationError(e, errorInfo) {
        window.setTimeout(function () {
            var error = errorInfo.type,
                isFolder = errorInfo.isFolder,
                name = errorInfo.name;

            if (error === FileSystemError.ALREADY_EXISTS) {
                _showErrorDialog(ERR_TYPE_CREATE_EXISTS, isFolder, null, name);
            } else if (error === ProjectModel.ERROR_INVALID_FILENAME) {
                _showErrorDialog(ERR_TYPE_INVALID_FILENAME, isFolder, ProjectModel._invalidChars);
            } else {
                var errString = error === FileSystemError.NOT_WRITABLE ?
                        Strings.NO_MODIFICATION_ALLOWED_ERR :
                        StringUtils.format(Strings.GENERIC_ERROR, error);

                _showErrorDialog(ERR_TYPE_CREATE, isFolder, errString, name).getPromise();
            }
        }, 10);
    }
function _displayCreationError ( e , errorInfo ) { window . setTimeout ( function ( ) { var error = errorInfo . type , isFolder = errorInfo . isFolder , name = errorInfo . name ; if ( error === FileSystemError . ALREADY_EXISTS ) { _showErrorDialog ( ERR_TYPE_CREATE_EXISTS , isFolder , null , name ) ; } else if ( error === ProjectModel . ERROR_INVALID_FILENAME ) { _showErrorDialog ( ERR_TYPE_INVALID_FILENAME , isFolder , ProjectModel . _invalidChars ) ; } else { var errString = error === FileSystemError . NOT_WRITABLE ? Strings . NO_MODIFICATION_ALLOWED_ERR : StringUtils . format ( Strings . GENERIC_ERROR , error ) ; _showErrorDialog ( ERR_TYPE_CREATE , isFolder , errString , name ) . getPromise ( ) ; } } , 10 ) ; }
@private

Event handler which displays an error based on a problem creating a file.

@param {$.Event} e jQuery event object
@param {{type:any,isFolder:boolean}} errorInfo Information passed in the error events
@private
Display creation error